Orisai Data Sources integration for Nette
Install with Composer
composer require orisai/nette-data-sources
Register extension
extensions:
orisai.dataSources: OriNette\DataSources\DI\DataSourceExtension
Check orisai/data-sources docs first for data source usage, available formats and implementing own formats.
This package is just lightweight nette/di integration.
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()