Download the PHP package davalb/php-openbazaar-api without Composer
On this page you can find all versions of the php package davalb/php-openbazaar-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download davalb/php-openbazaar-api
More information about davalb/php-openbazaar-api
Files in davalb/php-openbazaar-api
Package php-openbazaar-api
Short Description The OpenBazaar API makes it easy for developers to communicate with the OpenBazaar marketplace
License
Informations about the package php-openbazaar-api
OpenBazaar Api
This library is a PHP 5.x implementation of the OpenBazaar REST API Documentation POST calls, OpenBazaar REST API Documentation GET calls The OpenBazaar API is a REST-based interface. By using this library you don't have to worry about communicating with the API: all the hard work has already be done.
This API is build upon the shoulders of a giant: Guzzle 5.0. This is an absolutely awesome library.
Installation
Start by installing composer. Next do:
$ composer require davalb/php-openbazaar-api
Requirements
PHP >=5.4.0
Usage
Creating a new instance is as simple as:
It is necessary to run the login first. After that you can run more api-calls without worrying about the authentication, since the cookie is persisted.
More info and plugins
For more information about Guzzle and its plugins checkout the docs.
Contributing
Implemented a missing call? PR's are welcome! The project follows the cakephp coding standards. Plese install and use the php code sniffer before sending a pull request
Also please provide tests for code that you write. Tests can be run like this
All versions of php-openbazaar-api with dependencies
guzzlehttp/guzzle Version ~5.0
guzzlehttp/guzzle-services Version ~0.5.0
guzzlehttp/oauth-subscriber Version ~0.2
guzzlehttp/log-subscriber Version ^1.0