Skip to content

Commit

Permalink
updated composer, reqs page
Browse files Browse the repository at this point in the history
Signed-off-by: bidi <[email protected]>
  • Loading branch information
bidi47 committed Oct 31, 2024
1 parent a5d8404 commit 9bb9a40
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
45 changes: 45 additions & 0 deletions docs/book/v5/installation/composer.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,56 @@
# Composer Installation of Packages

Composer is required to install DotKernel `frontend`. You can install Composer from the [official site](https://getcomposer.org/).

> First make sure that you have navigated your command prompt to the folder where you copied the files in the previous step.
## Install dependencies

Run this command in the command prompt.

> Use the **CLI** in order to ensure interactivity for proper configuration.
```shell
composer install
```

You should see this text below, along with a long list of packages to be installed instead of the `[...]`.
In this example there are 164 packages, though the number can change in future updates.
You will find the packages in the `vendor` folder.

```shell
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Updating dependencies
Lock file operations: 164 installs, 0 updates, 0 removals
[...]
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 164 installs, 0 updates, 0 removals
[...]
```

The setup script may prompt for some configuration settings, for example the lines below.
If you don't see them, you can skip to the next section.

```shell
Please select which config file you wish to inject 'Laminas\Diactoros\ConfigProvider' into:
[0] Do not inject
[1] config/config.php
Make your selection (default is 1):
```
Type `0` to select `[0] Do not inject` because DotKernel includes its own ConfigProvider which already contains the prompted configurations.
> If you choose `[1] config/config.php`, an extra `ConfigProvider` will be injected.
> This is not required for the default installation, so make sure to select `[0] Do not inject`.
The next question is:
`Remember this option for other packages of the same type? (y/N)`
Type `y` here, and hit `enter` to complete this stage.
## Development mode
If you're installing the project for development, make sure you have development mode enabled, by running:
Expand Down
2 changes: 1 addition & 1 deletion docs/book/v5/introduction/server-requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Both mod_php and FCGI (FPM) are supported.

## RDBMS

* MariaDB >= 10.11 LTS
* Tested with MariaDB 10.11 LTS and MariaDB 11.4 LTS

## Recommended extensions

Expand Down

0 comments on commit 9bb9a40

Please sign in to comment.