2017 © Pedro Peláez
 

library restful

Library for writing RESTful PHP clients.

image

bninja/restful

Library for writing RESTful PHP clients.

  • Thursday, November 6, 2014
  • by aipp
  • Repository
  • 9 Watchers
  • 13 Stars
  • 26,963 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 21 Forks
  • 0 Open issues
  • 10 Versions
  • 7 % Grown

The README.md

RESTful

Library for writing RESTful PHP clients., (*1)

Build Status, (*2)

The design of this library was heavily influenced by Httpful., (*3)

Requirements

Issues

Please use appropriately tagged github issues to request features or report bugs., (*4)

Installation

You can install using composer, a phar package or from source. Note that RESTful is PSR-0 compliant:, (*5)

Composer

If you don't have Composer install it:, (*6)

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

Add this to your composer.json:, (*7)

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

Refresh your dependencies:, (*8)

$ php composer.phar update

Then make sure to require the autoloader and initialize both:, (*9)

<?php
require(__DIR__ . '/vendor/autoload.php');

Httpful\Bootstrap::init();
RESTful\Bootstrap::init();
...

Phar

Download an Httpful phar file, which are all here:, (*10)

$ curl -s -L -o httpful.phar https://github.com/downloads/nategood/httpful/httpful.phar

Download a RESTful phar file, which are all here:, (*11)

$ curl -s -L -o restful.phar https://github.com/balanced/restful/downloads/restful-{VERSION}.phar

And then include both:, (*12)

<?php
include(__DIR__ . '/httpful.phar');
include(__DIR__ . '/restful.phar');
...

Source

Download Httpful source:, (*13)

$ curl -s -L -o httpful.zip https://github.com/nategood/httpful/zipball/master;
$ unzip httpful.zip; mv nategood-httpful* httpful; rm httpful.zip

Download the RESTful source:, (*14)

$ curl -s -L -o restful.zip https://github.com/balanced/restful/zipball/master
$ unzip restful.zip; mv balanced-restful-* restful; rm restful.zip

And then require both bootstrap files:, (*15)

<?php
require(__DIR__ . "/httpful/bootstrap.php")
require(__DIR__ . "/restful/bootstrap.php")
...

Usage

TODO

Testing

$ phpunit --bootstrap vendor/autoload.php tests/

Publishing

  1. Ensure that all tests pass
  2. Increment minor VERSION in src/RESTful/Settings and composer.json (git commit -am 'v{VERSION} release')
  3. Tag it (git tag -a v{VERSION} -m 'v{VERSION} release')
  4. Push the tag (git push --tag)
  5. Packagist will see the new tag and take it from there
  6. Build (build-phar) and upload a phar file

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Write your code and tests
  4. Ensure all tests still pass (phpunit --bootstrap vendor/autoload.php tests/)
  5. Commit your changes (git commit -am 'Add some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create new pull request

The Versions

06/11 2014

dev-master

9999999-dev http://github.com/balanced/restful

Library for writing RESTful PHP clients.

  Sources   Download

MIT

The Requires

 

api rest http client

06/11 2013

0.1.8

0.1.8.0 http://github.com/bninja/restful

Library for writing RESTful PHP clients.

  Sources   Download

MIT

The Requires

 

api rest http client

22/03 2013

0.1.7

0.1.7.0 http://github.com/bninja/restful

Library for writing RESTful PHP clients.

  Sources   Download

MIT

The Requires

 

api rest http client

05/02 2013

0.1.6

0.1.6.0 http://github.com/bninja/restful

Library for writing RESTful PHP clients.

  Sources   Download

MIT

The Requires

 

api rest http client

13/11 2012

0.1.5

0.1.5.0 http://github.com/bninja/restful

Library for writing RESTful PHP clients.

  Sources   Download

MIT

The Requires

 

api rest http client

12/11 2012

0.1.4

0.1.4.0 http://github.com/bninja/restful

Library for writing RESTful PHP clients.

  Sources   Download

MIT

The Requires

 

api rest http client

12/11 2012

0.1.3

0.1.3.0 http://github.com/bninja/restful

Library for writing RESTful PHP clients.

  Sources   Download

MIT

The Requires

 

api rest http client

28/09 2012

0.1.2

0.1.2.0 http://github.com/bninja/restful

Library for writing RESTful PHP clients.

  Sources   Download

MIT

The Requires

 

api rest http client

28/09 2012

0.1.1

0.1.1.0 http://github.com/bninja/restful

Library for writing RESTful PHP clients.

  Sources   Download

MIT

The Requires

 

api rest http client

28/09 2012

0.1.0

0.1.0.0 http://github.com/bninja/restful

Library for writing RESTful PHP clients.

  Sources   Download

MIT

The Requires

 

api rest http client