{"id":15093702,"url":"https://github.com/kenjis/ci4-composer-installer","last_synced_at":"2025-04-12T07:42:16.801Z","repository":{"id":45688580,"uuid":"513814646","full_name":"kenjis/ci4-composer-installer","owner":"kenjis","description":"You can install previous versions of CodeIgniter 4 app starter.","archived":false,"fork":false,"pushed_at":"2022-10-17T01:44:27.000Z","size":29,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-26T02:51:13.248Z","etag":null,"topics":["codeigniter","codeigniter4","composer"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kenjis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-14T08:10:57.000Z","updated_at":"2024-01-28T03:21:41.000Z","dependencies_parsed_at":"2023-01-20T04:48:02.612Z","dependency_job_id":null,"html_url":"https://github.com/kenjis/ci4-composer-installer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenjis%2Fci4-composer-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenjis%2Fci4-composer-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenjis%2Fci4-composer-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenjis%2Fci4-composer-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenjis","download_url":"https://codeload.github.com/kenjis/ci4-composer-installer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248536981,"owners_count":21120683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeigniter","codeigniter4","composer"],"created_at":"2024-09-25T11:24:50.757Z","updated_at":"2025-04-12T07:42:16.776Z","avatar_url":"https://github.com/kenjis.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeIgniter4 Composer Installer \u003c!-- omit in toc --\u003e\n\n- You can install previous versions of [CodeIgniter 4 app starter](https://github.com/codeigniter4/appstarter).\n- You can upgrade CodeIgniter4 to next version branch.\n\n\u003e **Warning**\n\u003e Many of the older versions of CI4 have active [Security Advisories](https://github.com/codeigniter4/CodeIgniter4/security/advisories). So do not use them in a production environment.\n\n- [Installing CodeIgniter4](#installing-codeigniter4)\n- [Upgrading CodeIgniter4](#upgrading-codeigniter4)\n  - [Tatter\\Patches](#tatterpatches)\n    - [Example: from v4.1.9 to v4.2.1 by Patches](#example-from-v419-to-v421-by-patches)\n  - [Liaison Revision](#liaison-revision)\n    - [Example: from v4.1.9 to v4.2.1 by Revision](#example-from-v419-to-v421-by-revision)\n- [Upgrading CodeIgniter4 to next version branch](#upgrading-codeigniter4-to-next-version-branch)\n\n## Installing CodeIgniter4\n\n```console\n$ php ci4-install.php \u003cdir\u003e [\u003cversion\u003e]\n```\n\nThe following command installs CodeIgniter 4.1.9:\n```console\n$ php ci4-install.php ci4app 4.1.9\n```\n\n## Upgrading CodeIgniter4\n\nIf you want to upgrade the older version of CI4 that you installed, you may need to upgrade Project Files (files in other than `system` folder).\n\nYou can do it manually according to [Upgrading From a Previous Version](https://codeigniter4.github.io/CodeIgniter4/installation/upgrading.html).\n\nBut if you use [tatter/patches](https://github.com/tattersoftware/codeigniter4-patches) or [liaison/revision](https://github.com/paulbalandan/liaison-revision), it is easier.\n\n### Tatter\\Patches\n\n\u003e **Note**\n\u003e **tatter/patches** is a shell script. So you need Unix Shell to run it.\n\n#### Example: from v4.1.9 to v4.2.1 by Patches\n\nCommit uncommitted changes in Git:\n```console\n$ git init\n$ git add .\n$ git commit -m \"CodeIgniter 4.1.9\"\n```\n\nInstall \"tatter/patches\":\n```console\n$ composer require --dev tatter/patches\n```\n\nCommit uncommitted changes in Git:\n```console\n$ git add -u\n$ git commit -m \"add tatter/patches\"\n```\n\nRun \"tatter/patches\":\n```console\n$ vendor/bin/patch\n```\n\n```console\ngit version 2.35.3\nComposer version 2.3.9 2022-07-05 16:52:11\n************************************\n*          CONFIGURATION           *\n************************************\n\nScripts Directory: /.../ci4app/vendor/tatter/patches/src\nProject Directory: /.../ci4app\nTarget Version:    \nCurrent Version:   \nSource Package:    codeigniter4/framework\nBase Branch:       main\nSelected Items:    app/ public/ env spark\n\n************************************\n*             STAGING              *\n************************************\n\nSwitched to a new branch 'tatter/scratch'\nLoading composer repositories with package information\nUpdating dependencies\nLock file operations: 0 installs, 1 update, 0 removals\n  - Upgrading codeigniter4/framework (v4.1.9 =\u003e v4.2.1)\nWriting lock file\nInstalling dependencies from lock file (including require-dev)\nPackage operations: 0 installs, 1 update, 0 removals\n  - Upgrading codeigniter4/framework (v4.1.9 =\u003e v4.2.1): Extracting archive\nGenerating autoload files\n28 packages you are using are looking for funding.\nUse the `composer fund` command to find out more!\ninfection/extension-installer: No extensions found\n[tatter/scratch d16f2e5] Patch framework\n 26 files changed, 1330 insertions(+), 1223 deletions(-)\n rewrite Views/errors/html/debug.css (79%)\n rewrite Views/errors/html/debug.js (90%)\n rewrite Views/errors/html/error_404.php (95%)\n rewrite Views/errors/html/error_exception.php (82%)\n rewrite Views/errors/html/production.php (84%)\n rewrite Views/welcome_message.php (97%)\nSwitched to a new branch 'tatter/patches'\nInstalling dependencies from lock file (including require-dev)\nVerifying lock file contents can be installed on current platform.\nPackage operations: 0 installs, 1 update, 0 removals\n  - Downgrading codeigniter4/framework (v4.2.1 =\u003e v4.1.9): Extracting archive\nGenerating autoload files\n28 packages you are using are looking for funding.\nUse the `composer fund` command to find out more!\n************************************\n*              MERGING             *\n************************************\n\n[tatter/patches c20e281] Patch framework\n Date: Fri Jul 15 08:54:50 2022 +0900\n 26 files changed, 1330 insertions(+), 1223 deletions(-)\n rewrite app/Views/errors/html/debug.css (79%)\n rewrite app/Views/errors/html/debug.js (90%)\n rewrite app/Views/errors/html/error_404.php (95%)\n rewrite app/Views/errors/html/error_exception.php (82%)\n rewrite app/Views/errors/html/production.php (84%)\n rewrite app/Views/welcome_message.php (97%)\n************************************\n*              SUCCESS             *\n************************************\n\nPatch successful! Updated files are available on branch tatter/patches.\nDeleted branch tatter/scratch (was d16f2e5).\n```\n\nRun \"composer update\":\n```console\n$ composer update\n```\n\nCheck the diff:\n```console\n$ git diff main...tatter/patches\n```\n\n### Liaison Revision\n\n#### Example: from v4.1.9 to v4.2.1 by Revision\n\nCommit uncommitted changes in Git:\n```console\n$ git init\n$ git add .\n$ git commit -m \"CodeIgniter 4.1.9\"\n```\n\nInstall \"liaison/revision\":\n```console\n$ composer require --dev liaison/revision\n```\n\nCommit uncommitted changes in Git:\n```console\n$ git add -u\n$ git commit -m \"add liaison/revision\"\n```\n\nRun \"spark revision:update\":\n```console\n$ php spark revision:update\n```\n\n```console\nCodeIgniter v4.1.9 Command Line Tool - Server Time: 2022-07-14 18:47:54 UTC-05:00\n\nLiaison Revision\nVersion: 1.1.0\nRun Date: Thu, 14 July 2022, 18:47:54 UTC-05:00\n\nLoaded configuration settings from: Liaison\\Revision\\Config\\Revision.\n+---------------------------+--------------------------------------------------------+\n| Setting                   | Value                                                  |\n+---------------------------+--------------------------------------------------------+\n| Root Path                 | /.../ci4app/                                           |\n| Write Path                | /.../ci4app/writable/                                  |\n| Ignored Directories Count | 0                                                      |\n| Ignored Files Count       | 0                                                      |\n| Allow Gitignore Entry     | Allowed                                                |\n| Fall Through to Project   | Allowed                                                |\n| Maximum Retries           | 10                                                     |\n| Consolidator              | Liaison\\Revision\\Consolidation\\DefaultConsolidator     |\n| Upgrader                  | Liaison\\Revision\\Upgrade\\ComposerUpgrader              |\n| Pathfinder                | Liaison\\Revision\\Paths\\DefaultPathfinder               |\n| Diff Output Builder       | SebastianBergmann\\Diff\\Output\\UnifiedDiffOutputBuilder |\n| Log Handlers Count        | 2                                                      |\n+---------------------------+--------------------------------------------------------+\n\nStarting software updates...\n\nLoading composer repositories with package information\nUpdating dependencies\nLock file operations: 0 installs, 1 update, 0 removals\n  - Upgrading codeigniter4/framework (v4.1.9 =\u003e v4.2.1)\nWriting lock file\nInstalling dependencies from lock file (including require-dev)\nPackage operations: 0 installs, 1 update, 0 removals\n  - Upgrading codeigniter4/framework (v4.1.9 =\u003e v4.2.1): Extracting archive\nGenerating autoload files\n32 packages you are using are looking for funding.\nUse the `composer fund` command to find out more!\ninfection/extension-installer: No extensions found\n\nFound 27 files to consolidate.\n[p] Proceed.\n[l] List all files to consolidate.\n[c] List created files only (0).\n[m] List modified files only (27).\n[d] List deleted files only (0).\n[a] Abort.\n\nWhat shall I do? [p, l, c, m, d, a]: p\n\nFound 1 file in conflict.\n[l] List all files in conflict.\n[o] Overwrite all.\n[b] Create backup files then safely overwrite all.\n[s] Skip all.\n[r] Resolve each conflict.\n[a] Abort.\n\nWhat shall I do? [l, o, b, s, r, a]: l\n\n+----------------------+----------+------+\n| File                 | Status   | Diff |\n+----------------------+----------+------+\n| app/Config/Paths.php | Modified | 9    |\n+----------------------+----------+------+\n\n\n\nFound 1 file in conflict.\n[l] List all files in conflict.\n[o] Overwrite all.\n[b] Create backup files then safely overwrite all.\n[s] Skip all.\n[r] Resolve each conflict.\n[a] Abort.\n\nWhat shall I do? [l, o, b, s, r, a]: r\n\nThis file was modified from source and does not match with your file.\napp/Config/Paths.php\n\n[d] Display local modifications (diff).\n[o] Overwrite file in destination.\n[b] Safely overwrite file in destination.\n[s] Skip this file.\n[a] Abort.\n\nWhat shall I do? [d, o, b, s, a]: d\n\nDisplaying diff for: app/Config/Paths.php\n--- Original\n+++ New\n@@ -25,7 +25,7 @@\n      *\n      * @var string\n      */\n-    public $systemDirectory = __DIR__ . '/../../vendor/codeigniter4/framework/system';\n+    public $systemDirectory = __DIR__ . '/../../system';\n \n     /**\n      * ---------------------------------------------------------------\n\nThis file was modified from source and does not match with your file.\napp/Config/Paths.php\n\n[d] Display local modifications (diff).\n[o] Overwrite file in destination.\n[b] Safely overwrite file in destination.\n[s] Skip this file.\n[a] Abort.\n\nWhat shall I do? [d, o, b, s, a]: s\n\n\nLogs for this run can be found here:\n/.../ci4app/writable/revision/logs/\n\nTerminating: Application update was successful.\nSoftware updates finished in 1.094 minutes.\n```\n\nCheck the diff:\n```console\n$ git diff\n```\n\n## Upgrading CodeIgniter4 to next version branch\n\n\u003e **Note**\n\u003e This requires Unix shell.\n\nBefore running this command, you need to commit all the changes:\n```console\n$ cd /path/to/ci4/project\n$ git add -u\n$ git commit\n```\n\n```console\n$ php ci4-update.php \u003cbranch\u003e\n```\n\nThe following command updates CodeIgniter to `4.3` branch:\n```console\n$ php ci4-update.php 4.3.x-dev\n```\n\nThis command fails due to a conflict. You need to resolve the conflict and complete git cherry-pick.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenjis%2Fci4-composer-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenjis%2Fci4-composer-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenjis%2Fci4-composer-installer/lists"}