PHP data utility classes.

0.7.0 2025-01-27 22:34 UTC

This package is auto-updated.

Last update: 2025-01-27 22:34:16 UTC


README

Build Status

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