【文件属性】:
文件名称:url:用于解析和操作 URL 的简单快速的 PHP 库
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-15 19:16:31
PHP
蜘蛛/网址
用于解析和操作 URL 的简单快速的 PHP 库。
使用 URL 对象
返回当前网址
$ url = Url :: current ();
$ url -> path ( 'whatever' );
echo $ url ; // will made string URL
// or
echo Url :: current ( '/some/path' ); // change current URL with path
从 URL 实例创建 URL 实例:
$ url = new Url ( 'http://www.sphido.org/' ); // crate instance from string
$ url2 = new Url ( $ url ); // crate instance from URL instance
用于简化 URL 更改的流畅界面
【文件预览】:
url-master
----src()
--------url.php(3KB)
----.travis.yml(301B)
----tests()
--------url.phpt(2KB)
----.gitignore(34B)
----readme.md(1KB)
----composer.json(567B)