toin0u/http-adapter 问题修复 & 功能扩展

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

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

toin0u/http-adapter

Composer 安装命令:

composer require toin0u/http-adapter

包简介

HttpAdapter PHP 5.3+ library

README 文档

README

This PHP 5.3+ library provides you simple HTTP adapters.

Build Status Coverage Status Latest Stable Version Total Downloads SensioLabsInsight

Installation

This library can be found on Packagist. The recommended way to install this is through composer.

Edit compose.json and add:

{
    "require": {
        "toin0u/http-adapter": "~1.0"
    }
}

And install dependecies:

$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install

Available adapters

  • CurlHttpAdapter to use cURL.
  • BuzzHttpAdapter to use Buzz, a lightweight PHP 5.3 library for issuing HTTP requests.
  • GuzzleHttpAdapter to use Guzzle, PHP 5.3+ HTTP client and framework for building RESTful web service clients.
  • ZendHttpAdapter to use Zend Http Client.
  • SocketHttpAdapter to use a socket.

Usage

<?php

require 'vendor/autoload.php';

$adapter = new HttpAdapter\CurlHttpAdapter;
$url     = 'http://ifconfig.me/ip';

printf('IP: %s', $adapter->getContent($url)); // IP: 127.0.0.1

Contributing

Please see CONTRIBUTING for details.

Credits

Acknowledgment

This set of adapters comes originally from the Geocoder PHP library.

Support

Please open an issues in github

License

HttpAdapter is released under the MIT License. See the bundled LICENSE file for details.

统计信息

  • 总下载量: 117.39k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 1
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-05-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固