PHPackages                             byjg/anydataset - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. byjg/anydataset

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

byjg/anydataset
===============

AnyDataset is a powerful data source abstraction layer for PHP that provides a simple and consistent interface to access different data sources. With AnyDataset, you can work with various data formats and storage systems using the same programming interface.

6.0.0(5mo ago)12138.0k↓25.6%37MITPHPPHP &gt;=8.3 &lt;8.6CI passing

Since Jul 29Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/byjg/php-anydataset)[ Packagist](https://packagist.org/packages/byjg/anydataset)[ GitHub Sponsors](https://github.com/byjg)[ RSS](/packages/byjg-anydataset/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (34)Used By (7)

   sidebar\_key anydataset   tags    php

 anydataset

 databases

    AnyDataset
==========

[](#anydataset)

AnyDataset is a powerful data source abstraction layer for PHP that provides a **simple and consistent interface** to access different data sources. With AnyDataset, you can work with various data formats and storage systems using the same programming interface.

[![Sponsor](https://camo.githubusercontent.com/fab14b7f7f475072ada0473f193d6f322561fd4a2958e0cc89910d053347cf27/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d2532336561346161613f6c6f676f3d67697468756273706f6e736f7273266c6f676f436f6c6f723d7768697465266c6162656c436f6c6f723d306431313137)](https://github.com/sponsors/byjg)[![Build Status](https://github.com/byjg/php-anydataset/actions/workflows/phpunit.yml/badge.svg?branch=master)](https://github.com/byjg/php-anydataset/actions/workflows/phpunit.yml)[![Opensource ByJG](https://camo.githubusercontent.com/425c1bbccc0f292bf4d20569ae74a6b2e384fd648f1af8911bc61de9a8dcfc0b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6f70656e736f757263652d62796a672d737563636573732e737667)](http://opensource.byjg.com)[![GitHub source](https://camo.githubusercontent.com/88e61eb211719144efdd570290a0456b6e13099c2df8d973f1bb43fe33bf0039/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4769746875622d736f757263652d696e666f726d6174696f6e616c3f6c6f676f3d676974687562)](https://github.com/byjg/php-anydataset/)[![GitHub license](https://camo.githubusercontent.com/5b0c0101f59bd8a17071b6320cb6e440b489d196c51c59c42e644a281cd1459c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f62796a672f7068702d616e79646174617365742e737667)](https://opensource.byjg.com/opensource/licensing.html)[![GitHub release](https://camo.githubusercontent.com/7d85441222173e2b3f6100fea764e79aefffcf8f3b01b73cc7b8599206fd7965/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f62796a672f7068702d616e79646174617365742e737667)](https://github.com/byjg/php-anydataset/releases/)

It is the core component of the [Anydataset project](https://packagist.org/providers/byjg/anydataset-implementation), an agnostic data source abstraction layer for PHP.

Key Features
------------

[](#key-features)

- **Unified Interface**: Access different data sources (databases, arrays, XML, JSON, etc.) using the same interface
- **Flexible Iteration**: Multiple ways to iterate through your data
- **Powerful Filtering**: Filter your data using a SQL-like syntax
- **Data Transformation**: Convert between different formats (JSON, XML, arrays)
- **Validation**: Validate your data against rules
- **Extensible**: Create your own data source implementations

Quick Start
-----------

[](#quick-start)

### Installation

[](#installation)

```
composer require "byjg/anydataset"
```

### Basic Usage

[](#basic-usage)

```
