百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
U

uri-template

> 编程语言
开源

扩展 RFC 6570 URI 模板

197 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

扩展 RFC 6570 URI 模板

Guzzle URI Template

guzzlehttp/uri-template expands RFC 6570 URI templates in PHP. It turns templates such as /users/{id}{?tab} into concrete URI strings using values from an array.

Use this package when an API describes paths or links with URI templates. If you only need to send HTTP requests, start with guzzlehttp/guzzle; install this package directly when your application needs URI template expansion.

Installation

bash
composer require guzzlehttp/uri-template

Version Guidance

Version Status PHP Version
2.0 Latest >=7.4,=7.2.5, 123,
'tab' => 'settings',

]);

echo $uri; // /users/123?tab=settings


The first argument is an RFC 6570 URI template. The second argument is an array
of variables. Variable names in the array must match the names used by the
template.

## Documentation

- [URI Template Usage](docs/uri-template-usage.md)
- [Input Contract](docs/input-contract.md)
- [Upgrade Guide](UPGRADING.md)
- [Changelog](CHANGELOG.md)

## Testing

```bash
make test

Security

If you discover a security vulnerability within this package, please send an email to [email protected]. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see Security Policy for more information.

License

Guzzle URI Template is made available under the MIT License (MIT). Please see License File for more information.

For Enterprise

Available as part of the Tidelift Subscription

The maintainers of Guzzle and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHP

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言