CodeIgniter Forums
Liaison Installer - Full suite installer for CodeIgniter4 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Addins (https://forum.codeigniter.com/forumdisplay.php?fid=34)
+--- Thread: Liaison Installer - Full suite installer for CodeIgniter4 (/showthread.php?tid=77051)



Liaison Installer - Full suite installer for CodeIgniter4 - paulbalandan - 07-15-2020

Liaison Installer for CodeIgniter4

A full suite installer for CodeIgniter4. (Inspired from Laravel Installer and fortified with other features)

Installation:
Code:
> composer global require paulbalandan/codeigniter4-installer

Usage:
Code:
> codeigniter4 new [--dev] [--with-git] [--with-gitflow] [-f|--force] [--] [<name>]

Features:
  • Downloads and extracts the right CI4 version
  • Removes extraneous files and directories
  • Creates out-of-the-box phpunit.xml.dist and phpunit GitHub action for continuous integration tests
  • Prepares  your composer.json
  • Initializes empty Git repository and Git Flow, if desired
  • Other features to come!  



RE: Liaison Installer - Full suite installer for CodeIgniter4 - MGatner - 07-16-2020

This sounds great! I started on a script for something like this but never finished this. Definitely looking forward to checking it out when I’m back on desktop.

One recommendation (if I’m understanding this right, on mobile): I wouldn’t encourage ever downloading the main CodeIgniter4 repo. While that’s the desired approach for submitting PRs, I think projects will always want to start with the AppStarter - then if they want to use the latest code from the repo change the dependency in composer.json. Check out the “builds” script in admin/starter if you haven’t already!


RE: Liaison Installer - Full suite installer for CodeIgniter4 - paulbalandan - 07-16-2020

Yes, the default installation is always on Appstarter. Adding the "--dev" flag will go for the developer version.


RE: Liaison Installer - Full suite installer for CodeIgniter4 - MGatner - 07-17-2020

Just to be clear... The “develop” version of the AppStarter is different than the CodeIgniter 4 repo, and if I were using a project-launching script and passed “—dev” I would expect the former, not the latter. Maybe I’ve got it all wrong and you’re already doing that, but this line makes it look like your actually installing the repo in place:

case 'develop':
$zip = 'https://github.com/codeigniter4/CodeIgniter4/zipball/develop';

I’ll be on desktop in a couple hours and can finally check it out for real. Sorry if this is all moot.


RE: Liaison Installer - Full suite installer for CodeIgniter4 - paulbalandan - 07-18-2020

Sorry but I did not follow. What are the differences exactly? From what I understand, develop version of appstarter will have the latest "system" folder, but not app, public, and other root files that have changed in the dev repo.

Thanks for the feedback. I'm open for enhancements really, and this is a great help.