opensite/http

curl library for php

Maintainers

Details

github.com/luckylsx/http

Source

Issues

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/opensite/http

1.0.0 2019-05-23 01:16 UTC

This package is auto-updated.

Last update: 2025-12-23 18:28:46 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