orisai/data-sources
最新稳定版本:1.0.3
Composer 安装命令:
composer require orisai/data-sources
包简介
Load and save data from and to various data formats
README 文档
README
Data Sources
Load and save data from and to various data formats
📄 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 }
统计信息
- 总下载量: 23.79k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MPL-2.0
- 更新时间: 2020-12-04