PHPackages                             outlandish/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. [HTTP &amp; Networking](/categories/http)
4. /
5. outlandish/rest-bundle

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

outlandish/rest-bundle
======================

Provides a REST-like API for the Doctrine entities in a Symfony application.

v1.0(12y ago)21.3k1PHP

Since Feb 21Pushed 12y ago6 watchersCompare

[ Source](https://github.com/outlandishideas/RestBundle)[ Packagist](https://packagist.org/packages/outlandish/rest-bundle)[ RSS](/packages/outlandish-rest-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

REST API in a Box
=================

[](#rest-api-in-a-box)

The `OutlandishRestBundle` provides a REST-like API for the Doctrine entities in a Symfony application. It is highly opinionated and requires no configuration which makes it an excellent choice for rapid prototyping with JavaScript frameworks such as Angular, Ember and Backbone.

Features:

- automatically generates routes
- uses JMSSerializer bundle
- uses Symfony validator component
- serializes errors and exceptions
- supports Doctrine associations
- uses JSON only
- pagination
- simple data queries using FIQL
- authentication can be added using the security component

For example if you have `Acme\FooBundle\Entity\Bar` then you can do the following:

```
GET /api/bar
// returns [{"id":1, ...}, {"id":2, ...}]

GET /api/bar/1
// returns {"id":1, ...}

POST /api/bar
{"foo":"baz", ...}
// returns {"id":3, "foo":"baz", ...}

PUT /api/bar/2
{"foo":"buzz", ...}
// returns {"id":2, "foo":"buzz", ...}

DELETE /api/bar/3
// returns nothing

GET /api/bar?id=gt=2&foo=baz
// returns [{"id":3, ...}]

GET /api/bar?per_page=2&offset=1
// returns [{"id":2, ...}, {"id":3, ...}]

GET /api/bar/0
// returns [{"message":"Entity not found"}]

```

POST and PUT requests expect JSON encoded entity data in the request body.

On error, a status code of 400, 404 or 500 is returned and the response body is an array of messages.

Installation
------------

[](#installation)

### 1. Add to `composer.json`

[](#1-add-to-composerjson)

```
"require": {
    "outlandish/rest-bundle": "dev-master",
},

```

### 2. Run `composer update`

[](#2-run-composer-update)

### 3. Add to `AppKernel.php`

[](#3-add-to-appkernelphp)

```
public function registerBundles()
{
    $bundles = array(
		//...
        new Outlandish\RestBundle\OutlandishRestBundle(),
    );

    return $bundles;
}

```

### 5. Edit `app/config/routing.yml`

[](#5-edit-appconfigroutingyml)

```
#...

outlandish_rest:
	resource: .
	type: outlandish_rest
	prefix: /api

```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4513d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/19558adf77530dd214600f1df79b264fb4976de4d32aa58ac5e2a63a2d5d979b?d=identicon)[kkokkoro](/maintainers/kkokkoro)

![](https://avatars.githubusercontent.com/u/1756944?v=4)[Outlandish](/maintainers/outlandishideas)[@outlandishideas](https://github.com/outlandishideas)

![](https://www.gravatar.com/avatar/31631a25b6c4f3cc8e9afe6217744e8529de467bff9234785eea4eefb1a1ac83?d=identicon)[tamlyn](/maintainers/tamlyn)

---

Top Contributors

[![tamlyn](https://avatars.githubusercontent.com/u/115310?v=4)](https://github.com/tamlyn "tamlyn (15 commits)")

---

Tags

restdoctrine

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M379](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M197](/packages/sulu-sulu)[api-platform/doctrine-orm

Doctrine ORM bridge

294.4M84](/packages/api-platform-doctrine-orm)[kimai/kimai

Kimai - Time Tracking

4.8k8.7k1](/packages/kimai-kimai)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1716.4k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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