【文件属性】:
文件名称:uritemplate:RFC 6570 URI 模板处理器
文件大小:15KB
文件格式:ZIP
更新时间:2021-06-26 11:15:09
PHP
模板
PHP URI 模板处理器
安装
如果您使用 Composer,只需运行
composer require uri-template/uri-template
或将此添加到您的 composer.json
"uri-template/uri-template" : "~1.0"
如果您不使用 composer,只需将文件复制到项目的 lib 文件夹中即可。
要求
UriTemplate 需要 PHP 5.3 或更高版本
例子
<?php
use UriTemplate \ Processor ;
$ url = new Processor ( 'http://github.com{/project}' , array (
'project' => array ( 'mcrumley' , 'uritemplate' )
));
echo $ url -> proc
【文件预览】:
uritemplate-master
----src()
--------UriTemplate()
----LICENSE(1KB)
----test()
--------UriTemplate()
--------spec-examples.json(6KB)
--------uritemplate.json(263B)
--------negative-tests.json(2KB)
--------extended-tests.json(6KB)
--------spec-examples-by-section.json(14KB)
--------bootstrap.php(218B)
----phpunit.xml(406B)
----README.md(2KB)
----composer.json(661B)