PHPackages                             nedra/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. nedra/rest-bundle

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

nedra/rest-bundle
=================

Generates a REST api based on your entities

1.3.9(8y ago)417[2 issues](https://github.com/mertoksuz/NedraRestBundle/issues)MITPHP

Since Aug 19Pushed 8y ago3 watchersCompare

[ Source](https://github.com/mertoksuz/NedraRestBundle)[ Packagist](https://packagist.org/packages/nedra/rest-bundle)[ RSS](/packages/nedra-rest-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (15)Versions (20)Used By (0)

[![Build Status](https://camo.githubusercontent.com/f1b54a12c9b26e1acf90e5a035ea6de10f4f7f5f42bc62ad5abf94145e2d4013/68747470733a2f2f7472617669732d63692e6f72672f6d6572746f6b73757a2f4e656472615265737442756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mertoksuz/NedraRestBundle)

NedraRestBundle
===============

[](#nedrarestbundle)

NedraRestBundle creates automatically a REST API based on your models. Just give your models and use your auto-generated endpoints.

Get Started
-----------

[](#get-started)

Bundle works on Doctrine ORM based models. Bundle purpose is generate a REST Api in fastest and easy way.

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

[](#installation)

Step 1: Update composer.json

```
composer require nedra/rest-bundle

```

Step 2: Register Classes to `AppKernel`

```
[...]
new FOS\RestBundle\FOSRestBundle(),
new JMS\SerializerBundle\JMSSerializerBundle($this),
new Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle(),
new Nedra\RestBundle\NedraRestBundle(),
```

Step 3: Update your `config.yml` for `NedraRestBundle`

```
nedra_rest:
    active: true # this is default value, you can disable the bundle with set to false
    entities:
        app.model:
            classes:
                model: AppBundle\Entity\Model
```

#### Note

[](#note)

`app.model` is a pattern example. You must define your models with application prefix like `app`

Check Routes
------------

[](#check-routes)

Run that command and debug your router

```
bin/console debug:router

```

You will see auto-generated routings for REST

```
app_model_index             GET         ANY      ANY    /models/
app_model_create            POST        ANY      ANY    /models/new
app_model_update            PUT|PATCH   ANY      ANY    /models/{id}
app_model_show              GET         ANY      ANY    /models/{id}
app_model_delete            DELETE      ANY      ANY    /models/{id}
```

Configuration Reference
-----------------------

[](#configuration-reference)

```
nedra_rest:
    entities:
        app.model:
            path: model # you can change /models/ to /cars/
            except: ['show']
            only: ['create', 'index']
            classes:
                model: AppBundle\Entity\Model
                form:  AppBundle\Form\ModelType
```

#### Note

[](#note-1)

You can use only one of them `except` or `only`

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity72

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

Every ~2 days

Total

19

Last Release

3196d ago

PHP version history (4 changes)1.0.0PHP &gt;=5.6

1.3.0PHP &gt;=5.5.9

1.3.3PHP ^5.6|^7.0

1.3.4PHP &gt;=5.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4201755?v=4)[Mert Öksüz](/maintainers/mertoksuz)[@mertoksuz](https://github.com/mertoksuz)

---

Top Contributors

[![mertoksuz](https://avatars.githubusercontent.com/u/4201755?v=4)](https://github.com/mertoksuz "mertoksuz (75 commits)")

---

Tags

apisymfonyrestesb

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[sulu/sulu

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

1.3k1.4M196](/packages/sulu-sulu)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-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)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)[kimai/kimai

Kimai - Time Tracking

4.8k8.7k1](/packages/kimai-kimai)

PHPackages © 2026

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