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/book/v7/installation/composer.md
+21-4Lines changed: 21 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,19 +14,30 @@ Run this command in the command prompt.
14
14
composer install
15
15
```
16
16
17
+
The automatic setup script performs these tasks:
18
+
19
+
- Installs the packages listed in the `composer.json` file and their dependencies into the `vendor` folder.
20
+
- Creates the `composer.lock` file that locks all dependencies to exact versions (you can still run `composer update` to replace them with newer versions, if available).
21
+
- Configures PHP CodeSniffer, a utility to detect code style errors in PHP code.
22
+
- Generate and save the OAuth2 keys in the `data/oauth` folder.
23
+
- Creates the initial `config/autoload` configuration files:
24
+
- config/autoload/local.php
25
+
- config/autoload/local.test.php
26
+
- config/autoload/mail.global.php
27
+
17
28
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 164 packages, though the number can change in future updates.
19
-
You will find the packages in the newly-created `vendor` folder.
29
+
30
+
> In this example there are 146 packages, though the number can change in future updates.
20
31
21
32
```shell
22
33
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
23
34
Loading composer repositories with package information
Copy file name to clipboardExpand all lines: docs/book/v7/installation/test-the-installation.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,18 +2,29 @@
2
2
3
3
> If you are getting server error 500, make sure to check the folder permissions covered in the [FAQ page](https://docs.dotkernel.org/api-documentation/v7/installation/faq/)
4
4
5
-
Sending a GET request to the [home page](http://0.0.0.0:8080/) should output the following message:
5
+
Sending a GET request to the home page for your virtual host should output the following message:
6
6
7
7
```json
8
8
{"message": "Dotkernel API version 7"}
9
9
```
10
10
11
+
From this point on, you are ready to add custom code to your application.
12
+
11
13
## Old way of doing things, using PHP built-in server
12
14
15
+
This is an alternative way of accessing the API, without using a virtual host.
16
+
Run this command from the project root:
17
+
13
18
```shell
14
19
php -S 0.0.0.0:8080 -t public
15
20
```
16
21
22
+
You should see something like this:
23
+
24
+
```shell
25
+
[Mon Mar 30 14:53:50 2026] PHP 8.4.15 Development Server (http://0.0.0.0:8080) started
26
+
```
27
+
17
28
## Running tests
18
29
19
30
The project has two types of tests: functional and unit tests, you can run both types at the same type by executing this command:
0 commit comments