lib/curl

There is no license information available for the latest version (0.5) of this package.

A simple cURL wrapper for PHP

0.5 2014-05-01 10:27 UTC

This package is auto-updated.

Last update: 2024-11-29 04:19:49 UTC


README

A simple class for wrapping curl

#Install with Composer

{
    "require": {
        "lib/curl": "0.2"
    }
}

#Usage

<?php

use Curl\Request;

$curl = new Request();

$curl->url = 'http://www.somewebsite.com/';
$curl->post = array(
  'username' => 'admin',
  'password' => 'derp'
);

$curl->timeout = 400;

$result = $curl->execute();

var_dump($result);