定制 vdhicts/http-query-builder 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

vdhicts/http-query-builder

最新稳定版本:v2.1.0

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.72k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固