承接 maltyxx/restclient 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

maltyxx/restclient

最新稳定版本:v4.0.3

Composer 安装命令:

composer require maltyxx/restclient

包简介

REST Full Client for Codeigniter 3

README 文档

README

REST Full Client for Codeigniter 3

Requirements

  • PHP 5.3.x (Composer requirement)
  • CodeIgniter 3.x.x

Installation

Step 1 Installation by Composer

Run composer

composer require maltyxx/restclient

Step 2 Examples

Controller file is located in /application/controllers/Client.php.

<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Client extends CI_Controller
{
    public function index()
    {
        $this->load
            ->add_package_path(FCPATH.'vendor/restclient')
            ->library('restclient')
            ->remove_package_path(FCPATH.'vendor/restclient');

        $json = $this->restclient->post('https://my-super-webservice.com/ws', array(
            'lastname' => 'test'
        ));

        $this->restclient->debug();
    }
}

统计信息

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

GitHub 信息

  • Stars: 11
  • Watchers: 2
  • Forks: 16
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2015-05-07