Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexander-schranz/sulu-backend-bundle
A Sulu Bundle to make it easier to create new Backend Bundles.
https://github.com/alexander-schranz/sulu-backend-bundle
Last synced: 2 months ago
JSON representation
A Sulu Bundle to make it easier to create new Backend Bundles.
- Host: GitHub
- URL: https://github.com/alexander-schranz/sulu-backend-bundle
- Owner: alexander-schranz
- Created: 2016-03-12T10:21:39.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-30T07:42:57.000Z (over 7 years ago)
- Last Synced: 2024-10-03T11:15:46.055Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 99.6 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# 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
```bash
composer require l91/sulu-backend-bundle
```**Add Bundle to AdminKernel**
```php
$bundles[] = new L91\Sulu\Bundle\BackendBundle\L91SuluBackendBundle();
```# Usage
As example we will create a API for an entity called Vehicle.
## 1. Create Entity
First create the doctrine entity with a `.orm.xml`.
## 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.```php