Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/suminagashi/orchestra

⚡️ Sleek Symfony Admin 🌪
https://github.com/suminagashi/orchestra

annotations backoffice symfony tailwindcss vuejs

Last synced: about 1 month ago
JSON representation

⚡️ Sleek Symfony Admin 🌪

Awesome Lists containing this project

README

        

orchestra


Sleek symfony admin boilerplate


Build
Version
Total Download
License

## Install the bundle :

> Flex recipe incoming...

### Register the bundle :

``` php
// config/bundles.php

return [
...
Suminagashi\OrchestraBundle\OrchestraBundle::class => ['all' => true],
];
```

### Register the route :

``` yaml
// config/routes/orchestra.yaml

orchestra_admin:
resource: "@OrchestraBundle/Resources/config/routes.xml"
prefix: /admin
```

### Usage :

- Orchestra provide 2 new annotations :
- `@Resource` for class
- `@Field` for properties
- The data validation use `Symfony\Component\Validator\Constraints` annotation

### Examples :

``` php
// src/Entity/Dummy.php

test;
}

public function setTest(string $test): self
{
$this->test = $test;

return $this;
}
}
```

### API Reference

#### `@Resource`

| Attribute | Description |
| ------------- | ------------- |
| `label` | Used to set the label displayed in the menu |
| `name` | Override default name of the resource |
| `actions` | WIP : Set available CRUD operations |