Welcome Guest, Not a member yet? Register   Sign In
How to install & update CI4 with Composer?


I want to update CI4 (to the latest commit) in my app with `composer update`.
Is there any way?

CI4 is not currently listed on Packagist, so without adding a custom repository in your app's composer.json file, it's not possible at the moment, as far as I know.

Adding a custom repository in my app's composer.json is no problem.

PHP Code:
   "repositories": [
   "require": {

But if I install CI4 as a dependency via Composer, I still have to prepare some folders and files for my application manually, and adjust paths to the framework.

What do you plan for CI4 Composer installation?

(This post was last modified: 12-07-2016, 08:30 AM by kilishan.)

There hasn't been much discussion yet about what, if any, special tasks will be taken when installed by Composer. We're still trying to finish the framework itself. Smile

It sounds like you're possibly moving some folders around or doing other customization to the install. In that case, I don't know that a CI-specific installer is needed. It sounds more like you need to write a git hook or post install script to automate that stuff for you after install/update.

I created https://github.com/kenjis/codeigniter-co...-installer for CI3.
It seems we need CI4 version.

Some of those features could be nice to have, but it's too early to tell what will be officially supported.

I wrote maybe an year ago that it will be good if CI framework is not in 1 project with the base app.

Many other frameworks have proved that its good to have standalone framework repository and basic app (they can be more than 1 as Yii have Basic and Advanced apps which are good start points for further development).
Best VPS Hosting : Digital Ocean

I've updated my CodeIgniter Composer Installer:

Theme © iAndrew 2016 - Forum software by © MyBB