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 ago8 watchersCompare

[ Source](https://github.com/outlandishideas/RestBundle)[ Packagist](https://packagist.org/packages/outlandish/rest-bundle)[ RSS](/packages/outlandish-rest-bundle/feed)WikiDiscussions master Synced 2mo 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 68% 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

4465d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/e1ae585faaa9c1bae546aa1e5a0a1fb55ca347fc09d19b7aeb57df808908c823?d=identicon)[outlandishideas](/maintainers/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

[api-platform/doctrine-orm

Doctrine ORM bridge

243.1M39](/packages/api-platform-doctrine-orm)[gointegro/hateoas-bundle

GOintegro HATEOAS Bundle

6810.6k](/packages/gointegro-hateoas-bundle)[maldoinc/doctrine-filter

Quickly add advanced filtering/searching and sorting capabilities to any resource in your APIs or Web apps that use Doctrine.

607.3k](/packages/maldoinc-doctrine-filter)[gointegro/hateoas

GOintegro HATEOAS Lib

408.0k1](/packages/gointegro-hateoas)[adrotec/breeze.server.php

Breeze JS support for Symfony 2 or any other PHP 5.3+ application

2615.8k1](/packages/adrotec-breezeserverphp)[pz/doctrine-rest

Rest API library for Doctrine 2 ORM

255.7k1](/packages/pz-doctrine-rest)

PHPackages © 2026

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