【文件属性】:
文件名称:json-builder:允许以编程方式构建 JSON 对象
文件大小:19KB
文件格式:ZIP
更新时间:2021-07-01 14:16:34
PHP
JSON 生成器
允许以编程方式构建 JSON 字符串
目录
概述
<?php
require __DIR__ . '/vendor/autoload.php' ;
use JsonBuilder \ Builder \ JsonBuilder ;
$ jb = new JsonBuilder ();
$ root = $ jb -> root ( 'array' );
$ root
-> children ()
-> string ()
-> value ( 'Foo' )
-> end ()
-> number ()
-> value ( 123 )
-> end ()
-> end ()
-> end ();
$ json = $ jb -> build
【文件预览】:
json-builder-master
----composer.json(387B)
----.travis.yml(221B)
----composer.lock(14KB)
----tests()
--------JsonBuilder()
----LICENSE(1KB)
----src()
--------json_last_error_msg.php(960B)
--------JsonBuilder()
----.gitignore(15B)
----phpunit.xml.dist(464B)
----README.md(2KB)