futape / php-utility
A library of PHP utilities
1.0.0
2019-11-24 17:41 UTC
Requires
- php: ~7.2.0
- ext-mbstring: *
- futape/string-utility: ^1.0.0
Requires (Dev)
- phpunit/phpunit: ^8.4
This package is auto-updated.
Last update: 2025-03-25 06:03:46 UTC
README
This library offers a set of PHP utilities.
Utility functions are implemented as static functions in an abstract class, which is never expected to be instantiated.
Install
composer require futape/php-utility
Usage
use Futape\Utility\Php\Php; var_dump(Php::isValidVariableName('0foo')); // false
Testing
The library is tested by unit tests using PHP Unit.
To execute the tests, install the composer dependencies (including the dev-dependencies), switch into the tests
directory and run the following command:
../vendor/bin/phpunit