vdhicts/http-query-builder
Composer 安装命令:
composer require vdhicts/http-query-builder
包简介
Replacement of http_build_query to allow the same parameter multiple times.
README 文档
README
Replacement of http_build_query to allow the same parameter multiple times.
Requirements
This package requires PHP 8.3 or higher.
Installation
You can install the package via composer:
composer require vdhicts/http-query-builder
Usage
The problem with the build-in http_build_query method is that it doesn't accept the same parameter multiple times as
it overwrites the key in the array. When you need to consume an API that uses those parameters (for example FastAPI
supports it), this package comes in handy.
Getting started
use Vdhicts\HttpQueryBuilder\Builder; $builder = Builder::make() ->add('filter', 'a:1') ->add('filter', 'b:2'); echo $builder; // filter=a%3A1&filter=b%3A2
Contributing
Found a bug or want to add a new feature? Great! There are also many other ways to make meaningful contributions such as reviewing outstanding pull requests and writing documentation. Even opening an issue for a bug you found is appreciated.
When you create a pull request, make sure it is tested, following the code standard (run composer code-style:fix to
take care of that for you) and please create one pull request per feature. In exchange, you will be credited as
contributor.
Testing
To run the tests, you can use the following command:
composer test
Security
If you discover any security related issues in this or other packages of Vdhicts!, please email security@vdhicts.nl instead of using the issue tracker.
vdhicts/http-query-builder 适用场景与选型建议
vdhicts/http-query-builder 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 17.75k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2021 年 08 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「query」 「builder」 「http_build_query」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 vdhicts/http-query-builder 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vdhicts/http-query-builder 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 vdhicts/http-query-builder 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Query filtering in your frontend
A Sphinx Query Builder extension for the Laravel Database package
Anax Database Active Record module for model classes.
Database/ORM-agnostic query construction helper
A simple package to create tables in Discord messages.
Create mail from controller action render
统计信息
- 总下载量: 17.75k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 22
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-08-05