oploshka / reform
0.4.0
2019-08-01 22:40 UTC
Requires
- php: >=7.2.0
Requires (Dev)
- phpunit/phpunit: ^8
This package is not auto-updated.
Last update: 2024-10-01 09:39:06 UTC
README
一个非常轻量级的PHP类,可以将数据转换为指定的格式。
1. 安装
推荐通过 Composer 安装。运行以下命令进行安装
php composer.phar require oploshka/reform
2. 功能
简单性
- 提供开箱即用的简单转换。
可扩展性
- 能够编写自己的转换。
- 可以组合自己的和内置的转换
- 可以覆盖内置的转换。
3. 使用
示例代码
$Reform = new \Oploshka\Reform\Reform(['string' => 'Oploshka\\ReformItem\\StringReform']); $result = $Reform->item('string', ['type' => 'string']);
更多详细信息请参阅文档
4. 测试
测试已使用PHPUnit进行。代码已被测试以确保PHP 7.0兼容。
5. 作者
Andrey Tyurin
6. 特别感谢
我想感谢所有了解我并支持我的人。
7. 许可证
"Reform" 采用MIT许可证。
Copyright (c) 2018 Andrey Tyurin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.