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

Hi,

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

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.
Reply
#3

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

composer.json:
PHP Code:
{
 
   "repositories": [
 
       {
 
           "type""vcs",
 
           "url""https://github.com/bcit-ci/CodeIgniter4"
 
       }
 
   ],
 
   "require": {
 
       "codeigniter/framework""dev-develop"
 
   }


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?
Reply
#4

(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.
Reply
#5

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

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

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
Reply
#8

I've updated my CodeIgniter Composer Installer:
https://github.com/kenjis/codeigniter-co...r/tree/4.x
Reply




Theme © iAndrew 2016 - Forum software by © MyBB