PHPackages                             programmingarehard/resource-bundle - 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. programmingarehard/resource-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

programmingarehard/resource-bundle
==================================

Symfony bundle that helps in developing REST APIs.

0.1.0(11y ago)33302MITPHPPHP &gt;=5.3.2

Since Jul 11Pushed 11y ago9 watchersCompare

[ Source](https://github.com/ProgrammingAreHard/ResourceBundle)[ Packagist](https://packagist.org/packages/programmingarehard/resource-bundle)[ RSS](/packages/programmingarehard-resource-bundle/feed)WikiDiscussions master Synced 1w ago

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

ResourceBundle
==============

[](#resourcebundle)

The ResourceBundle is an opinionated Symfony bundle to aid in developing REST APIs. It makes some architectural decisions for you, allowing you to focus more on the domain of your application. It uses as little magic as possible to make it easier to understand, debug, and extend.

---

\##Prerequisites The ResourceBundle relies on the [FOSRestBundle](https://github.com/FriendsOfSymfony/FOSRestBundle/blob/master/Resources/doc/index.md)to handle content negotiation and RESTful decoding of request bodies. After installing the bundle, you must configure it before proceeding to use the ResourceBundle. [Here is a sample configuration](https://gist.github.com/dadamssg/a4f2784267f893ef9114)to get started.

***Note***: *The ResourceBundle does not handle any sort of authentication. It is meant to be used in conjunction with something like the [FOSOAuthServerBundle](https://github.com/FriendsOfSymfony/FOSOAuthServerBundle).*

\##Bundle Usage

- [Resources](#resources)
- [Resource Repositories](#resource-repositories)
- [Resource Managers](#resource-managers)
- [Resource Forms](#resource-forms)
- [Form Handlers](#form-handlers)
- [Form Processors](#form-processors)
- [Resource Controllers](#resource-controllers)
- [Resource Routing](#resource-routing)
- [Events](#events)
- [Bundle Configuration Reference](#bundle-configuration-reference)
- [Special Notes](#special-notes)

\##Resources The ResourceBundle is centered around resources. The bundle requires resources(entities) to implement the very simple [ResourceInterface](https://github.com/ProgrammingAreHard/ResourceBundle/blob/master/Domain/ResourceInterface.php). The examples assume you're using Doctrine but the bundle is ORM agnostic. First, let's create a simple resource.

```
