Install php composer from https://getcomposer.org/
Install the neuron data component:
composer require neuron-php/data
Wrappers for filter_input.
- Cookie
- Get
- Post
- Server
- Session
All filters use the following interface:
interface IFilter
{
public static function filterScalar( $Data ): mixed;
public static function filterArray( array $Data ): array|false|null;
}
- DateRange
- GpsPoint
- NumericRange
- Version
The Version data object is designed to work with the Bump command line utility to reference version information from version.json
The string class supports the BASIC string manipulation commands such as left, right, mid and trim. Also, quote, dequote, toCamelCase and toSnakeCase.
You can read more about the Neuron components at neuronphp.com