2017 © Pedro Peláez
 

library curl

简单的curl组件,用于get和post请求

image

lackone/curl

简单的curl组件,用于get和post请求

  • Wednesday, April 25, 2018
  • by lackone
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

curl

使用composer创建一个curl组件,用于简单的get和post请求。, (*1)

如何使用

1、引入

composer require lackone/curl , (*2)

2、使用命名空间

use Lackone\Curl; , (*3)

3、get请求

$data = Curl::get('http://www.baidu.com'); , (*4)

4、post请求

$data = Curl::post('http://127.0.0.1/test', ['name' => 'test']); , (*5)

5、上传文件

$data = Curl::post('http://127.0.0.1/test', ['file' => '@./README.md']); , (*6)

The Versions

25/04 2018

dev-master

9999999-dev https://github.com/lackone

简单的curl组件,用于get和post请求

  Sources   Download

MIT

by Avatar lackone

curl post get

25/04 2018

1.0.0

1.0.0.0 https://github.com/lackone

简单的curl组件,用于get和post请求

  Sources   Download

MIT

by Avatar lackone

curl post get