• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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?
Do you want to write tests for your apps? Our book, CodeIgniter Testing Guide would help you.
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.
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4
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?
Do you want to write tests for your apps? Our book, CodeIgniter Testing Guide would help you.
Reply

#4
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.
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4
Reply

#5
I created https://github.com/kenjis/codeigniter-co...-installer for CI3.
It seems we need CI4 version.
Do you want to write tests for your apps? Our book, CodeIgniter Testing Guide would help you.
Reply

#6
Some of those features could be nice to have, but it's too early to tell what will be officially supported.
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4
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
Do you want to write tests for your apps? Our book, CodeIgniter Testing Guide would help you.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.