@@ -5,22 +5,23 @@ Composer Installation
5
5
:local:
6
6
:depth: 2
7
7
8
- Composer can be used in several ways to install CodeIgniter4 on your system.
8
+ Composer can be used in two ways to install CodeIgniter4 on your system.
9
9
10
10
.. important :: CodeIgniter4 requires Composer 2.0.14 or later.
11
11
12
12
.. note :: If you are not familiar with Composer, we recommend you read
13
13
`Basic usage <https://getcomposer.org/doc/01-basic-usage.md >`_ first.
14
14
15
- The first technique describes creating a skeleton project
15
+ The first technique describes creating a skeleton project (app starter)
16
16
using CodeIgniter4, that you would then use as the base for a new webapp.
17
17
The second technique described below lets you add CodeIgniter4 to an existing
18
18
webapp,
19
19
20
20
.. note :: If you are using a Git repository to store your code, or for
21
- collaboration with others, then the **vendor ** folder would normally
22
- be "git ignored". In such a case, you will need to do a ``composer update ``
23
- when you clone the repository to a new system.
21
+ collaboration with others, then the **vendor ** folder would normally
22
+ be "git ignored". In such a case, you will need to do a ``composer install ``
23
+ (or ``composer update `` if you want to update all Composer dependencies) when
24
+ you clone the repository to a new system.
24
25
25
26
App Starter
26
27
===========
@@ -139,11 +140,11 @@ Next Minor Version
139
140
If you want to use the next minor version branch, after using the ``builds `` command
140
141
edit **composer.json ** manually.
141
142
142
- If you try the ``4.4 `` branch, change the version to ``4.4 .x-dev ``::
143
+ If you try the ``4.5 `` branch, change the version to ``4.5 .x-dev ``::
143
144
144
145
"require": {
145
- "php": "^7.4 || ^8.0 ",
146
- "codeigniter4/codeigniter4": "4.4 .x-dev"
146
+ "php": "^8.1 ",
147
+ "codeigniter4/codeigniter4": "4.5 .x-dev"
147
148
},
148
149
149
150
And run ``composer update `` to sync your vendor
@@ -182,9 +183,9 @@ In your project root:
182
183
.. important :: When you deploy to your production server, don't forget to run the
183
184
following command:
184
185
185
- .. code-block :: console
186
+ .. code-block :: console
186
187
187
- composer install --no-dev
188
+ composer install --no-dev
188
189
189
190
The above command will remove the Composer packages only for development
190
191
that are not needed in the production environment. This will greatly reduce
0 commit comments