|
1 | 1 | # Composer Installation of Packages |
2 | 2 |
|
| 3 | +Composer is required to install Dotkernel `admin`. You can install Composer from the [official site](https://getcomposer.org/). |
| 4 | + |
| 5 | +> First make sure that you have navigated your command prompt to the folder where you copied the files in the previous step. |
| 6 | +
|
3 | 7 | ## Install dependencies |
4 | 8 |
|
| 9 | +Run this command in the command prompt. |
| 10 | + |
| 11 | +> Use the **CLI** in order to ensure interactivity for proper configuration. |
| 12 | +
|
5 | 13 | ```shell |
6 | 14 | composer install |
7 | 15 | ``` |
8 | 16 |
|
| 17 | +You should see this text below, along with a long list of packages to be installed instead of the `[...]`. |
| 18 | +In this example there are 171 packages, though the number can change in future updates. |
| 19 | +You will find the packages in the `vendor` folder. |
| 20 | + |
| 21 | +```shell |
| 22 | +No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information. |
| 23 | +Loading composer repositories with package information |
| 24 | +Updating dependencies |
| 25 | +Lock file operations: 171 installs, 0 updates, 0 removals |
| 26 | +[...] |
| 27 | +Writing lock file |
| 28 | +Installing dependencies from lock file (including require-dev) |
| 29 | +Package operations: 171 installs, 0 updates, 0 removals |
| 30 | +[...] |
| 31 | +``` |
| 32 | + |
| 33 | +The setup script prompts for some configuration settings, for example the lines below: |
| 34 | + |
| 35 | +```shell |
| 36 | +Please select which config file you wish to inject 'Laminas\Validator\ConfigProvider' into: |
| 37 | + [0] Do not inject |
| 38 | + [1] config/config.php |
| 39 | + Make your selection (default is 1): |
| 40 | +``` |
| 41 | +
|
| 42 | +Type `0` to select `[0] Do not inject`. |
| 43 | +
|
| 44 | +> We choose `0` because Dotkernel includes its own ConfigProvider which already contains the prompted configurations. |
| 45 | +> If you choose `[1] config/config.php`, an extra `ConfigProvider` will be injected. |
| 46 | +
|
| 47 | +The next question is: |
| 48 | +
|
| 49 | +`Remember this option for other packages of the same type? (y/N)` |
| 50 | +
|
| 51 | +Type `y` here, and hit `enter` to complete this stage. |
| 52 | +
|
9 | 53 | ## Development mode |
10 | 54 |
|
11 | 55 | If you're installing the project for development, make sure you have development mode enabled, by running: |
|
0 commit comments