Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qishibo/php-curl
我只是想要个简单的CURL请求类库,为啥动不动就要装个Guzzle。。于是造了个精简的轮子。
https://github.com/qishibo/php-curl
curl php
Last synced: 24 days ago
JSON representation
我只是想要个简单的CURL请求类库,为啥动不动就要装个Guzzle。。于是造了个精简的轮子。
- Host: GitHub
- URL: https://github.com/qishibo/php-curl
- Owner: qishibo
- Created: 2018-05-24T01:33:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-24T01:48:11.000Z (over 6 years ago)
- Last Synced: 2024-05-02T01:08:33.391Z (6 months ago)
- Topics: curl, php
- Language: PHP
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## CURL请求类库
> PHP实现的CURL请求类库,不要跟我说有啥Guzzle之类的,情景是想要个简单的类库,能实现基本的get、post就行,为啥要装个那么重的玩意。。按需自取吧。
### 用法:
```php
1], ['Header: xxx', 'Header1: 111']);// GET http://www.baidu.com?id=1&name=2
$result = Curl::get('http://www.baidu.com?id=1', ['name' => 2], ['Header: xxx', 'Header1: 111']);// POST http://www.baidu.com id=1
$result = Curl::post('http://www.baidu.com', ['id' => 1], ['Header: xxx', 'Header1: 111']);```