alextartan / helpers
Collection of helper classes
Installs: 30 297
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 1
Requires
- php: ^8.0 || ^8.1
- ext-readline: *
- laminas/laminas-validator: ^2.15.1
- psr/log: ^1.1 || ^2.0 || ^3.0
Requires (Dev)
- infection/infection: ^0.20.1
- php-coveralls/php-coveralls: ~2.1
- phpstan/phpstan: ~1.2.0
- phpstan/phpstan-phpunit: ~1.0.0
- phpstan/phpstan-strict-rules: ~1.1.0
- phpunit/phpunit: ^9.5.10
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.6.2
README
About
These are some on the helpers I've gathered so far.
Not a lot of magic involved, but these have saved me hours of work
Array
indexArrayOfObjectsByMethod
indexArrayOfArraysByKey
Reflection
setPrivatePropertyValue
getPrivatePropertyValue
callPrivateMethod
Dates
getDateTimeFromDateTimeImmutable
toYmdHis
... and some more