opensite/http

curl library for php

1.0.0 2019-05-23 01:16 UTC

This package is auto-updated.

Last update: 2025-06-23 17:28:16 UTC


README

curl library for php

Requirement

  1. PHP >= 5.6
  2. guzzlehttp >= 6.3.3
  3. Composer

Installation

$ composer require opensite/http

Usage

<?php

use opensite\http;

# 设置debug调试配置 及 verify https验证

Http::setDefaultConfig(false,false);

# 设置header 头

Http::setHeaders(array $params);

# GET 请求‚

Http::HTTPRequest('GET',array $params);


# POST 请求‚‚

Http::HTTPRequest('POST',array $params);

Contributors

Your contributions are always welcome!

LICENSE

Released under MIT LICENSE