basemax/jpophp
Composer 安装命令:
composer require basemax/jpophp
包简介
JPOPHP (JSON Parser Object PHP) is a library for parsing the data in JSON format.
README 文档
README
Json Parser Object PHP
Tiny Library for parse JSON.
JPOPHP (PHPJsonParser) can encode and decode data in JSON format.
We provides a pure PHP solution to take a value and generates a string that represents that value in JSON format.
The package can also take a JSON encoded string and decodes it to retrieve the original data value.
JPOPHP Features
- Small and light library
- Hand-coded scanner
- Analyze and found Errors
- Unicode Support
- No dependencies (only suitable version of the
PHP) - Written and run on
PHP 7.2.6,PHP 7.3.4
Type of supported values
- Integer
- Float
- Boolean (
true,false) - Null
- String
- Char (Now this is same as a string)
- Sub Array
- Sub Object
JPOPHP TODO
- Improve speed and performance (Speed does not reach
C Language!)
Usage
All public functions are accessible through the $json variable.
array $json->decode(string);string $json->encode(array);
Samples
To view the full details, run the Example.php file.
JSON Grammar
You can check the JSONGrammar.txt file to view the JSON standard grammar.
JPO-PHP Performance
Competition between json_encode(...) and $json->encode(...)
The basic PHP functions are written in C itself.
Do not expect to reach it quickly.
However, there is always way for improvement.
JPO PHP History
-
Version 1.0 (first) : 2018-06-26 - 2018-06-26
-
Version 2.1 : 2018-06-27 - 2019-03-13
-
Version 2.2 : 2019-03-25 - 2019-04-03
-
Version 2.2.1 : 2019-04-04
License
JsonParser (PHP JSON Parser) is licensed under the GNU General Public License.
basemax/jpophp 适用场景与选型建议
basemax/jpophp 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 335 次下载、GitHub Stars 达 27, 最近一次更新时间为 2019 年 06 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「json」 「parser」 「lexer」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 basemax/jpophp 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 basemax/jpophp 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 basemax/jpophp 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Easy to use SDK with grabber for multiple platforms at once like YouTube, Dailymotion, Facebook and more.
Kinikit - PHP Application development framework MVC component
A simple library for make Lexer and Parsers to build a language
ext-json wrapper with sane defaults
A package to cast json fields, each sub-keys is castable
An MT940 bank statement parser for PHP
统计信息
- 总下载量: 335
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 27
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2019-06-11