Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 608 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 608 Bytes

futape/php-utility

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