captjm / backup-symfony-bundle
Backup symfony databases and upload folders
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.1
- ext-zip: *
- easycorp/easyadmin-bundle: ^4.7
- symfony/finder: ^6.3
- symfony/flex: ^2.3
- symfony/framework-bundle: ^6.3
- symfony/http-kernel: ^6.3
- symfony/routing: ^6.3
- symfony/twig-bundle: ^6.3
- symfony/yaml: ^6.3
- twig/twig: ^3.7
README
Installation
BackupSymfonyBundle requires PHP 8 or higher and Symfony 5.4 or higher.
Run the following command to install it in your application:
$ composer require captjm/backup-symfony-bundle
Insert in config/routes.yaml
:
captjm_backup:
resource: '../vendor/captjm/backup-symfony-bundle/src/Controller/'
type: annotation
Insert in config/services.yaml
:
parameters:
captjm.database_url: '%env(DATABASE_URL)%'
services:
Captjm\BackupSymfonyBundle\Controller\CaptjmBackupSymfonyController:
tags:
- 'controller.service_arguments'
arguments:
- '@parameter_bag'
And then insert in Controller/Admin/DashboardController.php
:
public function configureMenuItems(): iterable
{
....
yield MenuItem::linkToRoute('Backup', 'fas fa-download', 'captjm_backup');
....
}
Documentation
Versions
Demo Application
License
This software is published under the MIT License