futape / php-utility
A library of PHP utilities
Installs: 5
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/futape/php-utility
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-09-25 06:58:36 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