orisai/nette-data-sources
最新稳定版本:1.0.3
Composer 安装命令:
composer require orisai/nette-data-sources
包简介
Orisai Data Sources integration for Nette
README 文档
README
Nette Data Sources
Orisai Data Sources integration for Nette
📄 Check out our documentation.
💸 If you like Orisai, please make a donation. Thank you!
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 }
统计信息
- 总下载量: 1.78k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MPL-2.0
- 更新时间: 2023-01-20