Releases: CrazyTapok-bit/tgWebValid
v3.0.1
- The project is covered by PHPUnit tests
- Fixed critical errors when receiving empty data
- The project corresponds to the max level of PHPStan
- Improved functionality
v3.0.0
Significant restructuring has been carried out on the TgWebValid
class to improve security and usability. The class has been rewritten using the concept of data validation.
The isValid
and isLoginValid
methods have now been replaced with two new methods: validateInitData
and validateLoginWidget
. These methods take in input data, validate it, and return objects of the InitData
and LoginWidget
classes if the passed data is valid or a value of false
if the data is invalid.
Additionally, new classes InitDataValidator
and LoginWidgetValidator
have been added, which are responsible for validating input data. These classes contain all the validation rules, as well as the corresponding methods that check whether the input data is valid.
Furthermore, some unnecessary fields have been removed from the TgWebValid
class, specifically the initData
and user
fields. Instead, data is stored in InitData
and LoginWidget
objects.
As a result of these changes, the TgWebValid
class has become more secure and convenient to use, as users can now verify the validity of input data before executing necessary operations and avoid encountering errors.
v2.1.0
In this release, unnecessary constructor calls have been removed and the entity data filling method has been streamlined to a single format.
Hash removal before validity checking has been simplified to avoid unnecessary checks. Additionally, all helper functions will be placed in the helpers file.
Performance and software efficiency have been improved, reducing the amount of code and making the entity filling process clearer and more transparent to developers.
v2.0.0
Merge pull request #10 from CrazyTapok-bit/dev-master Update README.md (#9)
v1.0.0
First release