maceliu / symfony_admin
A set of admin system interface based on symfony
Installs: 1 741
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- ext-json: *
- ext-redis: *
- aliyuncs/oss-sdk-php: ^2.4
- guzzlehttp/guzzle: ^7.3
- stof/doctrine-extensions-bundle: ^1.7
- symfony/dotenv: 5.*
- symfony/framework-bundle: ^5.2
- symfony/mailer: 5.*
- symfony/maker-bundle: ^1.20
- symfony/monolog-bundle: ^3.5
- symfony/orm-pack: ^2.1
- symfony/yaml: 5.*
README
A set of admin system interface based on symfony 5.*
How to use it ?
1.Install by composer
composer require maceliu/symfony_admin
2.Add routes config
config/routes/annotations.yaml
symfony_admin:
resource: ../../vendor/maceliu/symfony_admin/src/Controller/
type: annotation
3. Add service config
config/service.yaml
services:
# .....your other config.......
SymfonyAdmin\:
resource: '../vendor/maceliu/symfony_admin/src/*'
exclude: '../vendor/maceliu/symfony_admin/src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
SymfonyAdmin\Controller\:
resource: '../vendor/maceliu/symfony_admin/src/Controller'
tags: ['controller.service_arguments']
4.Add doctrine config
config/packages/doctrine.yaml
doctrine:
orm:
mappings:
SymfonyAdmin:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/vendor/maceliu/symfony_admin/src/Entity'
prefix: 'SymfonyAdmin\Entity'
alias: App
filters:
soft-deleteable:
class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
enabled: true
stof_doctrine_extensions:
orm:
default:
softdeleteable: true
5. Install db data
Execute the SQL statements in the install.sql in your database