vdhicts/http-query-builder 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vdhicts/http-query-builder

最新稳定版本:v2.0.1

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.

统计信息

  • 总下载量: 17.59k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-08-05