PHPackages                             bninja/restful - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. bninja/restful

ActiveLibrary[HTTP &amp; Networking](/categories/http)

bninja/restful
==============

Library for writing RESTful PHP clients.

0.1.8(12y ago)1451.5k↓50%21MITPHP

Since Sep 28Pushed 11y ago9 watchersCompare

[ Source](https://github.com/bninja/restful)[ Packagist](https://packagist.org/packages/bninja/restful)[ Docs](http://github.com/bninja/restful)[ RSS](/packages/bninja-restful/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (10)Used By (0)

RESTful
=======

[](#restful)

Library for writing RESTful PHP clients.

[![Build Status](https://camo.githubusercontent.com/666adec3f95a16f072208ff09d6954a639854c7aac2eb97d53acfa2689d3d4da/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f62616c616e6365642f7265737466756c2e706e67)](http://travis-ci.org/balanced/restful)

The design of this library was heavily influenced by [Httpful](https://github.com/nategood/httpful).

Requirements
------------

[](#requirements)

- [PHP](http://www.php.net) &gt;= 5.3 **with** [cURL](http://www.php.net/manual/en/curl.installation.php)
- [Httpful](https://github.com/nategood/httpful) &gt;= 0.1

Issues
------

[](#issues)

Please use appropriately tagged github [issues](https://github.com/balanced/restful/issues) to request features or report bugs.

Installation
------------

[](#installation)

You can install using [composer](#composer), a [phar](#phar) package or from [source](#source). Note that RESTful is [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) compliant:

### Composer

[](#composer)

If you don't have Composer [install](http://getcomposer.org/doc/00-intro.md#installation) it:

```
$ curl -s https://getcomposer.org/installer | php

```

Add this to your `composer.json`:

```
{
    "require": {
        "balanced/restful": "*"
    }
}

```

Refresh your dependencies:

```
$ php composer.phar update

```

Then make sure to `require` the autoloader and initialize both:

```
