PHPackages                             orisai/data-sources - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. orisai/data-sources

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

orisai/data-sources
===================

Load and save data from and to various data formats

1.0.3(1y ago)423.8k4MPL-2.0PHPPHP 7.4 - 8.4CI failing

Since Jan 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/orisai/data-sources)[ Packagist](https://packagist.org/packages/orisai/data-sources)[ Docs](https://github.com/orisai/data-sources)[ RSS](/packages/orisai-data-sources/feed)WikiDiscussions v1.x Synced 6d ago

READMEChangelogDependencies (17)Versions (5)Used By (4)

 [![Orisai](https://github.com/orisai/.github/raw/main/images/repo_title.png?raw=true)](https://github.com/orisai/.github/blob/main/images/repo_title.png?raw=true)
 Data Sources
===================================================================================================================================================================================

[](#data-sources)

 Load and save data from and to various data formats

 📄 Check out our [documentation](docs/README.md).

 💸 If you like Orisai, please [make a donation](https://orisai.dev/sponsor). Thank you!

 [![](https://github.com/orisai/data-sources/actions/workflows/ci.yaml/badge.svg?branch=v1.x)](https://github.com/orisai/data-sources/actions?query=workflow:CI+branch:v1.x) [![](https://camo.githubusercontent.com/685fdae535ad2f81b04f6b4036e5511127eb35fdde573f5857e80d31251691b2/68747470733a2f2f62616467656e2e6e65742f636f766572616c6c732f632f6769746875622f6f72697361692f646174612d736f75726365732f76312e783f63616368653d333030)](https://coveralls.io/github/orisai/data-sources?branch=v1.x) [![](https://camo.githubusercontent.com/2c970276f9bfb93cebb05d4de443198312d2c9ab659bd2acfb7a5776faa6dba5/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d68747470733a2f2f62616467652d6170692e737472796b65722d6d757461746f722e696f2f6769746875622e636f6d2f6f72697361692f646174612d736f75726365732f76312e78)](https://dashboard.stryker-mutator.io/reports/github.com/orisai/data-sources/v1.x) [![](https://camo.githubusercontent.com/7240f5d1d25d4e7f1cc325baab6cac1ac8e9e0f07eb6a8ef6a7a6f85743a6b6f/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f6f72697361692f646174612d736f75726365733f63616368653d33363030)](https://packagist.org/packages/orisai/data-sources) [![](https://camo.githubusercontent.com/6e155d7c82fbdfc755d508ab43ac99bd27c6a353a3c419035f4c0cfa84a63982/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6f72697361692f646174612d736f75726365733f63616368653d33363030)](https://packagist.org/packages/orisai/data-sources) [![](https://camo.githubusercontent.com/40b2374865c7727b1568a7b77cc1a8068979ac265d85d659fe73b2d337b458e6/68747470733a2f2f62616467656e2e6e65742f62616467652f6c6963656e73652f4d504c2d322e302f626c75653f63616368653d33363030)](https://choosealicense.com/licenses/mpl-2.0/)

```
use Orisai\DataSources\DataSource;
use Orisai\DataSources\Exception\EncodingFailure;
use Orisai\DataSources\Exception\NotSupportedType;

try {
	$dataSource->encode('data', 'application/json' /* or just 'json' */); // json-encoded string
} catch (NotSupportedType $exception) {
	// Requested type is not supported
	$exception->getRequestedType(); // 'application/json'
	$exception->getSupportedTypes(); // content types or file extensions, depending on what was requested
} catch (EncodingFailure $exception) {
	// Encoding failed
}
```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance40

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~177 days

Total

5

Last Release

504d ago

PHP version history (3 changes)1.0.0PHP &gt;=7.4.0 &lt;8.3.0

1.0.2PHP 7.4 - 8.3

1.0.3PHP 7.4 - 8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20974277?v=4)[Marek Bartoš](/maintainers/mabar)[@mabar](https://github.com/mabar)

---

Top Contributors

[![mabar](https://avatars.githubusercontent.com/u/20974277?v=4)](https://github.com/mabar "mabar (91 commits)")

---

Tags

datadecoderencoderfile-formatfilesjsonneonorisaiparserphpyamljsonparserdatayamlfilesneonencoderdecoderorisai

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/orisai-data-sources/health.svg)

```
[![Health](https://phpackages.com/badges/orisai-data-sources/health.svg)](https://phpackages.com/packages/orisai-data-sources)
```

###  Alternatives

[league/commonmark

Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)

2.9k404.0M702](/packages/league-commonmark)[nette/neon

🍸 Nette NEON: encodes and decodes NEON file format.

93462.1M333](/packages/nette-neon)[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M170](/packages/hassankhan-config)[salsify/json-streaming-parser

A streaming parser for JSON in PHP.

7766.7M15](/packages/salsify-json-streaming-parser)[bcncommerce/json-stream

A bundle of tools to work with JSON in PHP

642.2M3](/packages/bcncommerce-json-stream)[sbsaga/toon

🧠 TOON for Laravel — a compact, human-readable, and token-efficient data format for AI prompts &amp; LLM contexts. Perfect for ChatGPT, Gemini, Claude, Mistral, and OpenAI integrations (JSON ⇄ TOON).

6115.6k](/packages/sbsaga-toon)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
