You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/getting-started/flavors.md
+45-4Lines changed: 45 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,6 @@ Some specific explanation, illustrated with some code:
24
24
25
25
Or juste a specific <spandb-tools-flavor="standalone-symfony-docker-laravel">`command line`</span> in a paragraph.
26
26
27
-
28
27
## Standalone
29
28
30
29
First and foremost, *DbToolsBundle* is a PHP library. It can easily be used on any project managed
@@ -38,7 +37,7 @@ to find the database(s) you want to manage.
38
37
39
38
## Symfony
40
39
41
-
*DbToolsBundle* was, in its first version, a tools for *Symfony* developers only. The library can still
40
+
*DbToolsBundle* was, in its first version, a tool for *Symfony* developers only. The library can still
42
41
be fully integrated into any Symfony project via its dedicated bridge.
43
42
44
43
Right after you installed the bundle, and with zero configuration:
@@ -52,10 +51,52 @@ Right after you installed the bundle, and with zero configuration:
52
51
53
52
*DbToolsBundle* can be used in any CI/CD using its [*Docker* image](https://hub.docker.com/r/makinacorpus/dbtoolsbundle).
54
53
55
-
This image is based on [FrankenPHP](https://frankenphp.dev/docs/docker/). Every *DbtoolsBundle* commands can be run with `docker container run` utility.
54
+
This image is based on [FrankenPHP](https://frankenphp.dev/docs/docker/). Every *DbToolsBundle* commands can be run with `docker container run` utility.
56
55
57
56
All configuration can be set up mounting a config file (see [installation section](/getting-started/installation) for an example). This config file uses the exact same syntax as for the standalone flavor.
58
57
59
58
## Laravel (experimental) {#laravel}
60
59
61
-
WIP
60
+
With the arrival of its version 2, *DbToolsBundle* opens up to the world of
61
+
*Laravel*.
62
+
63
+
As for *Symfony*, once installed:
64
+
65
+
- all commands are accessible via `artisan` (e.g. `php artisan db-tools:backup`),
66
+
- connection to your database(s) will be autoconfigured thanks to the
67
+
*Illuminate* database manager,
68
+
- anonymization can be configured through the package configuration file
69
+
`config/db-tools.php`.
70
+
71
+
For now, the documentation does not include any specific example or precision
72
+
related to *Laravel*. However, the configuration of *DbToolsBundle* in *Laravel*
73
+
is very similar to its configuration in a *Symfony* project which would use YAML
74
+
files for that purpose, except that you will use PHP files instead.
75
+
76
+
To get *DbToolsBundle* running:
77
+
78
+
- add it to your *Laravel* project with [composer](https://getcomposer.org):
79
+
```sh
80
+
composer require makinacorpus/db-tools-bundle
81
+
```
82
+
- only if you disabled the [package discovery][1] system, manually register the
83
+
*DbToolsBundle* service provider in your `bootstrap/providers.php` file:
0 commit comments