Download the PHP package neuron-php/data without Composer

On this page you can find all versions of the php package neuron-php/data. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package data

CI codecov

Neuron-PHP Data

A comprehensive data handling and utility component for PHP 8.4+ that provides essential data manipulation, filtering, parsing, and configuration management tools for the Neuron framework.

Table of Contents

Installation

Requirements

Install via Composer

Core Features

The Data component provides:

Input Filtering

Secure, type-safe wrappers for PHP's filter_input functions with a consistent interface.

Available Filters

Filter Interface

All filters implement the IFilter interface:

Usage Examples

Settings Management

The SettingManager provides a unified interface for configuration from multiple sources with fallback support.

Supported Sources

Basic Usage

YAML Configuration Example

INI Configuration Example

Memory Source

Environment Variables

The Env class provides secure .env file loading and environment variable management using a singleton pattern.

Basic Usage

.env File Format

Database Connections

Neuron\Data\Database\ConnectionFactory is the one place the framework turns a database: settings section into a PDO connection, so web requests, queue workers, the scheduler and db:migrate all apply the same rules:

Configuration may use individual keys (adapter, host, port, name, user/pass or username/password, charset), a url (mysql://, postgresql://, sqlite:///path, sqlite::memory:), or both; explicit keys win over the file's url.

A DATABASE_URL environment variable, as injected by Railway, Heroku or docker-compose, is applied last and overrides the file for the components it carries. Keys it does not mention (for example charset) fall through to the file, so one image can run against different databases with no config edit. Pass false as the second argument to normalize() to ignore it.

SQLite connections get WAL mode, a busy timeout and foreign keys; MySQL and PostgreSQL sessions are set to UTC.

Data Objects

Specialized objects for common data structures with built-in validation and manipulation.

Version

Works with semantic versioning and integrates with the Bump utility.

DateRange

Manage date ranges with validation and comparison.

NumericRange

Handle numeric ranges with validation.

GpsPoint

Geographic coordinate handling with distance calculations.

Parsers

Data parsing utilities for various formats and structures.

CSV Parser

Parse CSV data with custom delimiters and headers.

Positional Parser

Parse fixed-width positional data.

Name Parsers

Parse names in various formats.

Unit Conversion

Common unit conversion utilities for measurements.

Testing

Run the test suite:

Test Structure

Best Practices

Configuration Management

Input Validation

Environment Configuration

More Information

License

MIT License - see LICENSE file for details


All versions of data with dependencies

PHP Build Version
Package Version
Requires ext-curl Version *
ext-json Version *
ext-calendar Version *
neuron-php/formatting Version 0.7.*
symfony/yaml Version ^6.4 || ^7.0 || ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package neuron-php/data contains the following files

Loading the files please wait ...