Skip to content

Commit e7b2d58

Browse files
authored
Move composer install instructions above its usage
Added instructions for using FrankenPHP with the CakePHP server.
1 parent 8ad713d commit e7b2d58

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

docs/en/installation.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,6 @@ The standard way to install CakePHP:
4646

4747
::: code-group
4848

49-
```bash [Create Project]
50-
# Create a new CakePHP 5 application
51-
composer create-project --prefer-dist cakephp/app:~5.0 my_app_name
52-
53-
# Navigate to your app
54-
cd my_app_name
55-
56-
# Start development server
57-
bin/cake server
58-
```
59-
6049
```bash [Install Composer]
6150
# Linux/macOS
6251
curl -sS https://getcomposer.org/installer | php
@@ -74,6 +63,20 @@ composer --version
7463
composer --version
7564
```
7665

66+
```bash [Create Project]
67+
# Create a new CakePHP 5 application
68+
composer create-project --prefer-dist cakephp/app:~5.0 my_app_name
69+
70+
# Navigate to your app
71+
cd my_app_name
72+
73+
# Start development server
74+
bin/cake server
75+
76+
# Or if you have frankenphp available
77+
bin/cake server --frankenphp
78+
```
79+
7780
:::
7881

7982
::: tip Version Constraints

0 commit comments

Comments
 (0)