Skip to content

Commit 286f1c4

Browse files
authored
Merge pull request #8536 from kenjis/docs-installing_composer.rst
docs: update installing_composer.rst
2 parents d7449f6 + 626eb3a commit 286f1c4

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

user_guide_src/source/installation/installing_composer.rst

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,23 @@ Composer Installation
55
:local:
66
:depth: 2
77

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.
99

1010
.. important:: CodeIgniter4 requires Composer 2.0.14 or later.
1111

1212
.. note:: If you are not familiar with Composer, we recommend you read
1313
`Basic usage <https://getcomposer.org/doc/01-basic-usage.md>`_ first.
1414

15-
The first technique describes creating a skeleton project
15+
The first technique describes creating a skeleton project (app starter)
1616
using CodeIgniter4, that you would then use as the base for a new webapp.
1717
The second technique described below lets you add CodeIgniter4 to an existing
1818
webapp,
1919

2020
.. 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.
2425

2526
App Starter
2627
===========
@@ -139,11 +140,11 @@ Next Minor Version
139140
If you want to use the next minor version branch, after using the ``builds`` command
140141
edit **composer.json** manually.
141142

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``::
143144

144145
"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"
147148
},
148149

149150
And run ``composer update`` to sync your vendor
@@ -182,9 +183,9 @@ In your project root:
182183
.. important:: When you deploy to your production server, don't forget to run the
183184
following command:
184185

185-
.. code-block:: console
186+
.. code-block:: console
186187
187-
composer install --no-dev
188+
composer install --no-dev
188189
189190
The above command will remove the Composer packages only for development
190191
that are not needed in the production environment. This will greatly reduce

0 commit comments

Comments
 (0)