PHPackages                             l91/sulu-backend-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. [Admin Panels](/categories/admin)
4. /
5. l91/sulu-backend-bundle

ActiveSulu-bundle[Admin Panels](/categories/admin)

l91/sulu-backend-bundle
=======================

Sulu Bundle for easier create your own backend bundles.

1.0.1(9y ago)66.1k2[23 issues](https://github.com/alexander-schranz/sulu-backend-bundle/issues)MITPHPPHP &gt;=5.5

Since Aug 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/alexander-schranz/sulu-backend-bundle)[ Packagist](https://packagist.org/packages/l91/sulu-backend-bundle)[ Docs](https://github.com/alexander-schranz/sulu-backend-bundle)[ RSS](/packages/l91-sulu-backend-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

SULU Backend Bundle
===================

[](#sulu-backend-bundle)

Inspired by doctrine crud generator.

A Sulu Bundle to make it easier to create a new Backend Bundle.

With this Bundle it should be possible to create a Backend Bundles without the knowledge of husky the sulu javascript framework.

Installation
============

[](#installation)

```
composer require l91/sulu-backend-bundle
```

**Add Bundle to AdminKernel**

```
$bundles[] = new L91\Sulu\Bundle\BackendBundle\L91SuluBackendBundle();
```

Usage
=====

[](#usage)

As example we will create a API for an entity called Vehicle.

1. Create Entity
----------------

[](#1-create-entity)

First create the doctrine entity with a `.orm.xml`.

2. Create Repository
--------------------

[](#2-create-repository)

Create a Repository for loading entities from the database. The `BackendRepository` have a default implementation for them:

- `findById`
- `findAll`
- `count`

Create the functions in your repository or extend from the BackendRepository.

```
