PHPackages                             jdesrosiers/resourceful - 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. [Framework](/categories/framework)
4. /
5. jdesrosiers/resourceful

AbandonedLibrary[Framework](/categories/framework)

jdesrosiers/resourceful
=======================

A framework for rapid prototyping REST applications

62892PHP

Since Oct 16Pushed 3y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Resourceful
===========

[](#resourceful)

[![Build Status](https://camo.githubusercontent.com/fdfee747e8c1d4a74d0bda3453f280358566dc59ca2fb0761a7447f185e65576/68747470733a2f2f7472617669732d63692e6f72672f6a646573726f73696572732f7265736f7572636566756c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jdesrosiers/resourceful)[![Code Coverage](https://camo.githubusercontent.com/7598970c55ceb9fedea87d29655bb526d22c26a2816fc9e5fb8d903dae1de52d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a646573726f73696572732f7265736f7572636566756c2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/jdesrosiers/resourceful/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5b09100b766d7ab8de88700725631fec641945ae942d200f34e13b2776d79101/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a646573726f73696572732f7265736f7572636566756c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/jdesrosiers/resourceful/?branch=master)

Resourceful is a set of tools built on top of [Silex](https://github.com/silexphp/Silex) to streamline the process of building JSON based Hypermedia APIs by eliminating boilerplate code. HTTP methods, headers, etc are well defined in most cases, yet these things are usually left to the developer to re-implement the details every time they create a new API. Some of these details are easy to get wrong if you aren't well versed in the HTTP specification. Resourceful aims to help you by handling those details so you can focus on designing your API.

Resourceful was originally built for rapid prototyping, so it does a lot for you. However, you can choose which parts you want Resourceful to do and which parts you want to do yourself. When you put everything together, you get a very useful tool for rapid prototyping a Hypermedia API that requires you to write almost no code other than JSON Hyper-Schemas. This document starts with the basics and adds new features in each section.

Install
-------

[](#install)

Install Resourceful using composer

```
> composer require jdesrosiers/resourceful

```

The Resourceful Application
---------------------------

[](#the-resourceful-application)

The bare minimum that you will want from Resourceful is the Resourceful application. This class implements `Silex\Application` and can be used just like you would use a Silex application. The Resrourceful application decorates the Silex application with support for content negotiation, OPTIONS method support, CORS support, and error handling in JSON. This is the bare minimum stuff that any JSON based REST API should be doing.

### Quickstart

[](#quickstart)

```
