castor/uri
Composer 安装命令:
composer require castor/uri
包简介
RFC 3986 compliant URI value object
README 文档
README
RFC 3986 compliant URI value object.
Installation
You can install the latest stable version with:
composer require castor/uri
Quick Start
<?php use Castor\Net\Uri; $uri = Uri::parse('https://example.com/hello?foo=bar'); echo $uri->getScheme(); // Prints: https echo $uri->getHost(); // Prints: example.com echo $uri->getPath(); // Prints: /hello echo $uri->getRawQuery(); // Prints: foo=bar echo $uri->getQuery()->add('foo', 'foo')->encode(); // Prints: foo=bar&foo=foo
To learn about the rationale behind this library, best practices when using it and implementation examples, check the documentation.
统计信息
- 总下载量: 109
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2021-07-07