code-pilots / helpers
PHP library of useful functions and classes preferred to use in company in place of alternative solutions
Installs: 2 388
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 1
Open Issues: 0
Requires
- php: >=8.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.13
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^9.5
- symfony/var-dumper: ^4.0|^5.4
- vimeo/psalm: ^4.30
README
Helper functions and classes
Installation
Install the latest version with
$ composer require code-pilots/helpers
Functions
arrayRandValue
arrayRandValues
randomString
randomDigital
iterableChunks
isInitialized
declationsOfNumber
For contributors
Run tests
Exec: ./vendor/bin/phpunit
Run lint
Exec phpstan: ./vendor/bin/phpstan analyse src tests
Exec psalm: ./vendor/bin/psalm
Exec php-cs-fixer: './vendor/bin/php-cs-fixer fix --verbose'