定制 n0nag0n/easy-curl 二次开发

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

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

n0nag0n/easy-curl

最新稳定版本:v1.0.5

Composer 安装命令:

composer require n0nag0n/easy-curl

包简介

A simple wrapper library to make it easy to work with cURL (and to stop you from googling all the curl_setopt() you need)

README 文档

README

This is a super simple library to interact with curl.

Install with composer cause that's what all the cool kids use these days.

composer require n0nag0n/easy-curl

Basic Usage

<?php
	include('/path/to/vendor/autoload.php');

	use n0nag0n\EasyCurl;

	echo EasyCurl::getRequest('https://www.google.com/');

	$result = EasyCurl::postRequest('https://example.com/v1/endpoint', [ 'is_json_request' => true, 'post_body' => '{"json":"values"}' ]);

Check out the file on your own for documenation. It's pretty dang simple.

统计信息

  • 总下载量: 86
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-24