Download

The current version of Requests is v1.8.1, which you can download from GitHub as a zip or a tarball.

You can also check out the releases page on GitHub for a changelog plus more information.

Alternative Methods

Installing via Composer

If you’re using Composer to manage dependencies, you can add Requests with it.

composer require rmccue/requests

or

{
    "require": {
        "rmccue/requests": "^1.8.1"
    }
}

And if you don’t do so already, make sure you load the Composer autoload file.

require_once dirname(__FILE__) . '/vendor/autoload.php';

Installing via Git

To install the source code:

$ git clone https://github.com/WordPress/Requests.git

And include it in your scripts:

require_once '/path/to/Requests/library/Requests.php';

You’ll probably also want to register an autoloader:

Requests::register_autoloader();

Previous Versions