PHPackages                             codecasts/restinga - 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. [API Development](/categories/api)
4. /
5. codecasts/restinga

Abandoned → [artesaos/restinga](/?search=artesaos%2Frestinga)Library[API Development](/categories/api)

codecasts/restinga
==================

Easily Create REST API Clients for your PHP Applications

1.0.2(11y ago)66043MITPHPPHP &gt;=5.4.0

Since Apr 6Pushed 11y ago6 watchersCompare

[ Source](https://github.com/codecasts/restinga)[ Packagist](https://packagist.org/packages/codecasts/restinga)[ RSS](/packages/codecasts-restinga/feed)WikiDiscussions develop Synced 1w ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Restinga
========

[](#restinga)

Easily Create REST API Clients for your PHP Applications

[![Latest Stable Version](https://camo.githubusercontent.com/3765afefea04f84b7fba3c1ea30da69bdfa30a27afd30d2d1f03a13e066c4670/68747470733a2f2f706f7365722e707567782e6f72672f636f646563617374732f697567752f762f737461626c652e737667)](https://packagist.org/packages/codecasts/restinga) [![Total Downloads](https://camo.githubusercontent.com/de97dc53aa3a9913be01fcd8164f0ed8421e893afb3316cbc28727509028d36d/68747470733a2f2f706f7365722e707567782e6f72672f636f646563617374732f72657374696e67612f646f776e6c6f6164732e737667)](https://packagist.org/packages/codecasts/restinga) [![Latest Unstable Version](https://camo.githubusercontent.com/4c756209717205702c648bd9e75e56e6e5a6f1e82ffc90bbea8649ed22cd2e79/68747470733a2f2f706f7365722e707567782e6f72672f636f646563617374732f72657374696e67612f762f756e737461626c652e737667)](https://packagist.org/packages/codecasts/restinga) [![License](https://camo.githubusercontent.com/e9a8c67a5f9305d6bff5150cc6d8965efc472a4a0ba5518e27bd8b23e00491db/68747470733a2f2f706f7365722e707567782e6f72672f636f646563617374732f72657374696e67612f6c6963656e73652e737667)](https://packagist.org/packages/codecasts/restinga) [![Monthly Downloads](https://camo.githubusercontent.com/aecf7600be2b3afa36629f9de99da49168a615ad165899d65079dfa6615ae6b6/68747470733a2f2f706f7365722e707567782e6f72672f636f646563617374732f72657374696e67612f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/codecasts/restinga)

\###What it is? Restinga is tool to help you building REST Clients for your chosen API's.

\###Why? Well, sometimes the PHP Clients that companies provides sucks, you know it. Sometimes they are even more hard to use than CURLing the API itself. We've built this package to help you when that happens.

\###Quick Start

Before starting, you need to install Restinga as a project dependency. you can do that by running:

> composer require codecasts/restinga ~1.0

So now we can move defining your services.

#### 1 - Creating a Descritor for the Desired Service

[](#1---creating-a-descritor-for-the-desired-service)

Let's take for example [Digital Ocean](https://www.digitalocean.com/?refcode=3fa7794b0116) API, Restinga is not designed to handle Authorization it self so you should already have a person token or user token.

Start by Creating a file that will describe where to find and how to authorize the requests, you can easily do that by extending the `Codecasts\Restinga\Service\Descriptor` class.

```
