【文件属性】:
文件名称:Hal:HAL http 的 PHP 实现
文件大小:25KB
文件格式:ZIP
更新时间:2021-06-10 10:09:13
PHP
哈尔
<?php
use Hal \ Resource ,
Hal \ Link ;
/* Create a new Resource Parent */
$ parent = new Resource ( '/dogs' );
/* Add any relevent links */
$ parent -> setLink ( new Link ( '/dogs?q={text}' , 'search' ));
$ dogs [ 1 ] = new Resource ( '/dogs/1' );
$ dogs [ 1 ]-> setData (
array (
'id' => '1' ,
'name' => 'tiber' ,
'color' => 'black'
)
);
$ dogs [ 2 ] = n
【文件预览】:
Hal-master
----VERSION(6B)
----scripts()
--------package.php(5KB)
----library()
--------Hal()
----.travis.yml(55B)
----package.xml(5KB)
----build.xml(1KB)
----tests()
--------library()
--------phpunit.xml(1KB)
--------bootstrap.php(723B)
----LICENSE-2.0.txt(11KB)
----.gitignore(22B)
----readme.md(3KB)
----composer.json(910B)
----CHANGELOG(5KB)