daa/restful-curl-php-wrapper 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

daa/restful-curl-php-wrapper

最新稳定版本:v1.0

Composer 安装命令:

composer require daa/restful-curl-php-wrapper

包简介

Composer based cURL restful wrapper

README 文档

README

A simple composer based cURL wrapper providing RESTful HTTP requests

Usage

Add the following requirement to your composer file and do a composer install/update:

  "require": {
        ...
        "daa/restful-curl-php-wrapper": "1.*"
  },

Instantiate a new client in your code:

use Curl\Sdk\HttpClient;

$client = new HttpClient;

Make your call:

try {
    $response = $client->get($url);
    $response = $client->post($url, $params);
    $response = $client->put($url, $params);
    $response = $client->delete($url);
} catch(\Exception $e) {

}

统计信息

  • 总下载量: 19.07k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-21