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

ActiveSymfony-bundle[API Development](/categories/api)

gtheron/rest-bundle
===================

A bundle based on FriendsOfSymfony/RestBundle. Gives a base pattern for Resource definition and manipulation, along with base Controllers and Services to avoid REST resource manipulation code redundancy.

19PHP

Since Oct 2Pushed 10y ago1 watchersCompare

[ Source](https://github.com/GTheron/RestBundle)[ Packagist](https://packagist.org/packages/gtheron/rest-bundle)[ RSS](/packages/gtheron-rest-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

GTheronRestBundle
=================

[](#gtheronrestbundle)

This bundle depends on [FOSRestBundle](https://github.com/FriendsOfSymfony/FOSRestBundle). In a word, it aims at providing a base for REST resource definition and CRUD manipulation.

What is this bundle?
--------------------

[](#what-is-this-bundle)

If you're working on a REST api with Symfony2, you probably have used [FOSRestBundle](https://github.com/FriendsOfSymfony/FOSRestBundle). It offers functionnality for controllers and automatic routing, which is remarkably handy for building any REST api.

However, after having used it for a relatively large api, with lots of entities - which in the REST vocabulary would be Resources - I still had a lot of boilerplate code, especially since almost all resources needed at least basic CRUD functions. This meant code repetition in Controllers, Services and Models.

This bundle aims to provide a base definition for exposed Resources, as well as a service that provides CRUD operations for all resources, and abstract controllers with boilerplate code for the most common functions (cget, get, post and put - delete being quite trivial to write generally).

Note that as the moment of writing, I basically just ported code. There are a few things I need to work on before it's quite ready for use:

FeatureStateMaking authorization checks optionalWritten, being testedOffering more/better events in the validation cycleWritten, being testedAutomatic event generationWritten, being testedRecursive resources (sub resource atm)In design phaseFeel free to take a look at the code and provide suggestions!

Requirements
------------

[](#requirements)

[FOSRestBundle](https://github.com/FriendsOfSymfony/FOSRestBundle) will be required with composer on install. However, at this time, the Symfony ACL system is required to be initialized and ready for use (this is temporary, as it will only be needed in the future if you use the security options of the bundle). Refer to this doc to install it:

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/aac79185597b662b5a42e45436bfb8ec57e17ddc27b78e1acb50f6e9d46a6dc6?d=identicon)[GTheron](/maintainers/GTheron)

---

Top Contributors

[![GTheron](https://avatars.githubusercontent.com/u/1769992?v=4)](https://github.com/GTheron "GTheron (25 commits)")

### Embed Badge

![Health badge](/badges/gtheron-rest-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/gtheron-rest-bundle/health.svg)](https://phpackages.com/packages/gtheron-rest-bundle)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
