Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 853 Bytes

README.md

File metadata and controls

43 lines (28 loc) · 853 Bytes

Nette Data Sources

Orisai Data Sources integration for Nette

Content

Setup

Install with Composer

composer require orisai/nette-data-sources

Register extension

extensions:
	orisai.dataSources: OriNette\DataSources\DI\DataSourceExtension

Usage

Check orisai/data-sources docs first for data source usage, available formats and implementing own formats.

This package is just lightweight nette/di integration.

Registering encoders

Json and neon encoders are auto-registered. Yaml is auto-registered if symfony/yaml is installed.

Register custom encoders via extension

orisai.dataSource:
	encoders:
		example: Example\ExampleFormatEncoder()