futape/php-utility

A library of PHP utilities

1.0.0 2019-11-24 17:41 UTC

This package is auto-updated.

Last update: 2024-06-25 04:19:52 UTC


README

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