Hydrator that does not consume memory, does not require inheritance, does not depend on the framework, no unnecessary actions - just a quick conversion.
Benchmark report:
github.com/yzen-dev/php-dto-…
#php #hydrator #DTO #composer
1
52
ClassTransformer released v3 ✅
- Speed gain 70%
- Speed gain with cache x2
- Test coverage 100%
- Mutation Score Indicator (MSI): 100%
github.com/yzen-dev/plain-to…
#php #hydrator #DTO #composer
1
2
65
Below is a comparison of the speed of the closest competitors to my package
The sources of my comparison are published on github
github.com/yzen-dev/php-dto-…
1
1
18
An analysis of current similar solutions was also carried out. Unfortunately, some packages force the developer to inherit classes from their interfaces, which I really don’t want. Some dictate their class structure, which also entails changes in their established structure.
1
1
6
3) Sometimes it is necessary to perform a post-check for data consistency or simply output a log. The afterTransform method will be called when the object is transformed
1
1
11
2) If a field requires additional processing during its initialization, you can make mutator. set{Attribute}Attribute method on your class where {Attribute} is cased name of the property you wish to access.
1
1
10
This library will allow you to easily convert any data set into the object you need. You are not required to change the structure of classes, inherit them from external modules, etc. No dancing with tambourines — just data and the right class.
#php
1
1
28
ClassTransformer released v2.0 ✅
- Alias support
- Custom setters for properties
- Added afterTransform method
- Support enum from php 8.1
- Added transformCollection and transformMultiple method
- Speed gain 35%
github.com/yzen-dev/plain-to…
#PHP #DTO #composer #packagist #code
1
3
89
Так как mailtrap пригрустил, то для предлагаю свой пакет для Laravel
github.com/yzen-dev/laravel-…
Он поможет протестировать ваши email сообщения, проверить HTML, ссылки и т.д.
1
Upd: Version 0.1
- Support attached files
- Tests (coverage 95%)
github.com/yzen-dev/laravel-…
#Laravel #PHP #testing #emails
1
Андрей Яценко retweeted
Local mailer for Laravel github.com/yzen-dev/laravel-…
This solution will create its own mail transport, saving emails as daily logs, with the ability to view!
github.com/yzen-dev/laravel-…
#Laravel #php #mail
1
2













