neuron-php / data
PHP data utility classes.
Installs: 15 374
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- ext-calendar: *
- ext-curl: *
- ext-json: *
- neuron-php/formatting: 0.6.*
- symfony/yaml: ^6.4
Requires (Dev)
- php-mock/php-mock-phpunit: ^2.10
- phpunit/phpunit: 9.*
README
Neuron-PHP Data
Overview
Installation
Install php composer from https://getcomposer.org/
Install the neuron data component:
composer require neuron-php/data
Filtering
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; }
Data Objects
- 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
String
The string class supports the BASIC string manipulation commands such as left, right, mid and trim. Also, quote, dequote, toCamelCase and toSnakeCase.
ArrayHelper
More Information
You can read more about the Neuron components at neuronphp.com