文件名称:uri-interfaces:League URI接口
文件大小:18KB
文件格式:ZIP
更新时间:2024-05-22 05:24:39
php uri contracts-programming uri-interfaces PHP
Uri介面 该包包含一个接口,用于表示根据URI对象。 系统要求 你需要: PHP> = 7.1.3,但建议使用最新的稳定版PHP 安装 $ composer require league/uri-interfaces 文献资料 联赛\ Uri \ Contract \ UriInterface UriInterface接口对指定的通用URI进行建模。 该接口提供了与各种URI部分进行交互的方法,从而避免了重复解析URI的需要。 它还指定: __toString()方法,用于将模型化的URI强制转换为其字符串表示形式。 一个jsonSerialize()方法来改善与互操作性 访问URI属性 UriInterface接口定义了以下方法来访问URI字符串表示形式,其各个部分和组件。 <?php public UriInterface :: __toString (void): str
【文件预览】:
uri-interfaces-master
----composer.json(2KB)
----LICENSE(1KB)
----src()
--------Exceptions()
--------Contracts()
----psalm.xml(444B)
----phpstan.neon(132B)