Download the PHP package mschindler83/array-access without Composer
On this page you can find all versions of the php package mschindler83/array-access. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mschindler83/array-access
More information about mschindler83/array-access
Files in mschindler83/array-access
Download mschindler83/array-access
More information about mschindler83/array-access
Files in mschindler83/array-access
Vendor mschindler83
Package array-access
Short Description Easy array access
License MIT
Homepage http://www.markus-schindler.de
Package array-access
Short Description Easy array access
License MIT
Homepage http://www.markus-schindler.de
Please rate this library. Is it a good library?
Informations about the package array-access
Array Access
Library to ease array access handling. Requires PHP >= 7.4
Install
composer require mschindler83/array-access
Features
- Savely access typed values from a given array
- Optional JSON schema validation
- Support for datetime parsing
- Define your own validation callback when retrieving values
- Create a new array in form of "dot annotations"
- Easily write values to a specific path of the array
Usage Examples
Creating access objects
Create access object from an array and access values
Create an array from "dot annotation"
Plain array will contain:
Array access with JSON schema validation
JSON schema:
If validation fails, an ArrayAccessValidationFailed
exception will be thrown.
You can get an ArrayAccess
object of validation errors by calling the method errorMapping()
on the exception.
Access values
Write to a path
All versions of array-access with dependencies
PHP Build Version
Package Version
The package mschindler83/array-access contains the following files
Loading the files please wait ....