maltyxx/restclient
This package is abandoned and no longer maintained.
No replacement package was suggested.
REST Full Client for Codeigniter 3
Maintainers
v4.0.3
2018-10-18 12:53 UTC
Requires
- php: >=5.5.9
Requires (Dev)
- codeigniter/framework: 3.1.9
Suggests
None
Provides
None
Conflicts
None
Replaces
None
Apache-2.0 9baa5530eccc192cd777b4f55f4f286ca3e399f5
- Yoann Vanitou <y.vanitou.woop@santiane.fr>
- Romain GALLIEN <r.gallien.woop@santiane.fr>
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(); } }
