Download the PHP package byjg/anydataset without Composer
On this page you can find all versions of the php package byjg/anydataset. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download byjg/anydataset
More information about byjg/anydataset
Files in byjg/anydataset
Download byjg/anydataset
More information about byjg/anydataset
Files in byjg/anydataset
Vendor byjg
Package anydataset
Short Description Anydataset is an agnostic data source abstraction layer in PHP. Core Module.
License MIT
Package anydataset
Short Description Anydataset is an agnostic data source abstraction layer in PHP. Core Module.
License MIT
Please rate this library. Is it a good library?
Informations about the package anydataset
AnyDataset
Anydataset Core Module. Anydataset is an agnostic data source abstraction layer in PHP.
Features
- Access different data sources using the same interface.
- Iterable results
- Convert results to array
Current Implementations
Object | Data Source | Read | Write | Reference |
---|---|---|---|---|
DbDriverInterface | Relational DB | yes | yes | Github |
AnyDataSet | Anydataset | yes | yes | Github |
ArrayDataSet | Array | yes | no | Github |
TextFileDataSet | Delimited Fields | yes | no | Github |
FixedTextFileDataSet | Fixed Size fields | yes | no | Github |
XmlDataSet | Xml | yes | no | Github |
JSONDataSet | Json | yes | no | Github |
SparQLDataSet | SparQl Repositories | yes | no | Github |
NoSqlDocumentInterface | NoSql Document Based | yes | yes | Github |
KeyValueInterface | NoSql Key/Value Based | yes | yes | Github |
Examples
Iterating with foreach
Filtering results
Converting to Array
Iterating with While
or
Additional Classes
RowOutpout - Format Field Output
This class defines custom format for the field output.
Notes about the format pattern:
{}
represents the current value{.}
represents the field name{field_name}
return the value of $row->get(field_name)
RowValidator - Validate Field contents
Formatters
AnyDataset comes with an extensible set to format the AnyDataset. The interface is:
AnyDataset implements two formatters:
- JsonFormatter
- XmlFormatter
Example:
Install
Running Unit tests
Dependencies
All versions of anydataset with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1 <8.4
ext-dom Version *
byjg/xmlutil Version ^5.0
byjg/serializer Version ^5.0
ext-dom Version *
byjg/xmlutil Version ^5.0
byjg/serializer Version ^5.0
The package byjg/anydataset contains the following files
Loading the files please wait ....