Skip to content

Commit 42c8ad5

Browse files
committed
docs: add section "Installing Previous Versions" and note
1 parent da8a486 commit 42c8ad5

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

user_guide_src/source/installation/installing_composer.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,35 @@ If you omit the "project-root" argument, the command will create an
6565
that are not needed in the production environment. This will greatly reduce
6666
the vendor folder size.
6767

68+
Installing Previous Versions
69+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
70+
71+
For example, you may want to install v4.4.8 after v4.5.0 has been released.
72+
73+
In that case, specify the version in the command:
74+
75+
.. code-block:: console
76+
77+
composer create-project codeigniter4/appstarter:4.4.8 project-root
78+
79+
Then, open **composer.json** in your project root folder, and specify
80+
the framework version:
81+
82+
.. code-block:: text
83+
84+
"require": {
85+
...
86+
"codeigniter4/framework": "4.4.8"
87+
},
88+
89+
Then, run the ``composer update`` command.
90+
91+
.. note:: If you fix the version number like ``"codeigniter4/framework": "4.4.8"``
92+
in your **composer.json**, ``composer update`` command will not update the
93+
framework. See `Writing Version Constraints`_ for how to specify the version.
94+
95+
.. _Writing Version Constraints: https://getcomposer.org/doc/articles/versions.md#writing-version-constraints
96+
6897
Initial Configuration
6998
---------------------
7099

@@ -102,6 +131,10 @@ the framework version:
102131
103132
Then, run the ``composer update`` command.
104133

134+
.. note:: If you fix the version number like ``"codeigniter4/framework": "4.4.8"``
135+
in your **composer.json**, ``composer update`` command will not update the
136+
framework. See `Writing Version Constraints`_ for how to specify the version.
137+
105138
Pros
106139
----
107140

0 commit comments

Comments
 (0)