2017 © Pedro Peláez
 

library curly

This library is Manipulate the Curl library for PHP.

image

mikuni-labo/curly

This library is Manipulate the Curl library for PHP.

  • Friday, June 2, 2017
  • by mikuni-labo
  • Repository
  • 0 Watchers
  • 1 Stars
  • 281 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

Curly

Latest Stable Version Latest Unstable Version License composer.lock, (*1)

This library is Manipulate the Curl library for PHP., (*2)

Installation

With Composer

$ composer require mikuni-labo/curly
{
    "require": {
        "mikuni-labo/curly": "^1.0.0"
    }
}

Example

<?php
require 'vendor/autoload.php';

use MikuniLabo\Curly\Curly;

$ch = new Curly;

$ch->init();
$ch->setUrl('http://example.com/');// Request URL
$ch->setMethod('GET');             // Request Method
$ch->setUserPwd('auth-basic-user-id', 'auth-basic-password');// Auth Basic Credentials
$ch->setHeaderFromArray(array(     // Header
    'Content-type: application/json',
    // More any parameter...
));
$ch->setParameterFromArray(array(  // Request Parameter
    'key' => 'value',
    // More any parameter...
));
$ch->setJsonTransfer(true);
$response = $ch->exec();
$ch->close();

print_r( $response );

The Versions

02/06 2017

dev-master

9999999-dev https://github.com/mikuni-labo/curly

This library is Manipulate the Curl library for PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

api curl php

02/06 2017

v1.0.1

1.0.1.0 https://github.com/mikuni-labo/curly

This library is Manipulate the Curl library for PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

api curl php

07/05 2017

v1.0.0

1.0.0.0 https://github.com/mikuni-labo/curly

This library is Manipulate the Curl library for PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

api curl php