CodeIgniter Forums
CodeIgniter Composer Installer - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: CodeIgniter Composer Installer (/showthread.php?tid=61540)

Pages: 1 2 3 4


RE: CodeIgniter Composer Installer - kenjis - 05-28-2015

(05-28-2015, 10:59 AM)calcio Wrote: Hi kenjis I tried get this install but it was downloaded whitout the index.php file. Is it normal? I tried to copy the default index.php file from a normal CI3, but it's show an error.

"Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php"

No, it is not normal. Maybe you misunderstand the folder structure. This installer changes web root for the best security.

http://www.codeigniter.com/user_guide/installation/index.html
> For the best security, both the system and any application folders should be placed above web root so that they are not directly accessible via a browser.

Web root is `public/` folder. So there is `index.php`.

Code:
$ composer create-project kenjis/codeigniter-composer-installer codeigniter
$ cd codeigniter/
$ ls -l public/index.php
-rw-r--r--  1 kenji  staff  9840  5 29 06:30 public/index.php

If you use PHP 5.4 or later, you can use PHP built-in web server.

Code:
$ php -S localhost:8000 -t public/ bin/router.php

And go to `http://localhost:8000/`.

If you use web server like Apache, set your web root as `codeigniter/public/`.


RE: CodeIgniter Composer Installer - kenjis - 06-05-2015

I've released v0.2.1: https://github.com/kenjis/codeigniter-composer-installer/releases

* Add Ion Auth installer

Don't forget to rename class files, if you install it.

Code:
models/ion_auth_model.php         =>   models/Ion_auth_model.php
controllers/auth.php              =>   controllers/Auth.php



RE: CodeIgniter Composer Installer - kenjis - 06-21-2015

I've released v0.2.2: https://github.com/kenjis/codeigniter-composer-installer/releases

* Add CodeIgniter3 Filename Checker installer

If you like command line, you can do like this:
Code:
$ php bin/install.php ion-auth 2
$ php bin/install.php filename-checker master
$ php public/index.php check filename fix

It installs Ion Auth and CodeIgniter3 Filename Checker, and fixes class filenames of Ion Auth.


RE: CodeIgniter Composer Installer - kenjis - 07-13-2015

I've released v0.2.3: https://github.com/kenjis/codeigniter-composer-installer/releases

* Now installs public/.htaccess for removing index.php in your URL

The .htaccess might not work for all server configurations. You may need to change or remove if you don't need it.

See http://www.codeigniter.com/user_guide/general/urls.html#removing-the-index-php-file


RE: CodeIgniter Composer Installer - kenjis - 07-15-2015

I released v0.3.1: https://github.com/kenjis/codeigniter-composer-installer/releases

* Now installer sets $config['index_page'] empty string


RE: CodeIgniter Composer Installer - pixel - 09-01-2015

Thank for your work but I don't understand  why you are two application folder in your installation ?


codeigniter/
├── application/
├── bin
├── composer.json
├── composer.lock
├── public/
│   ├── .htaccess
│   └── index.php
└── vendor/
   └── codeigniter/
       └── framework/
           └── system/
           └── application/


RE: CodeIgniter Composer Installer - kenjis - 09-02-2015

"codeigniter/application/" is for your application.
It is copied from "vendor/codeigniter/application/" at your first installation.
Files in it is not changed if you run "composer update".

"vendor/codeigniter/" is the official CodeIgniter source code.
All files in "vendor/codeigniter/" are updated when you "composer update" if CodeIgniter new version is available.

In short, you don't worry about "vendor/codeigniter/application/". You are not using it.

And "vendor/" is Composer vendor folder. You should not edit any files in it.


RE: CodeIgniter Composer Installer - pixel - 09-03-2015

(09-02-2015, 03:56 PM)kenjis Wrote: In short, you don't worry about "vendor/codeigniter/application/". You are not using it.

And "vendor/" is Composer vendor folder. You should not edit any files in it.

Thank you for your clear explanation  Smile


RE: CodeIgniter Composer Installer - kenjis - 11-13-2015

I've just released v0.4.0: https://github.com/kenjis/codeigniter-composer-installer/releases
  • Add script to run PHP built-in web server (bin/server.sh)
  • Fix typo in output message (bin/install.php)



RE: CodeIgniter Composer Installer - solidcodes - 11-13-2015

I'm not in favor of installing codeigniter using composer.
The old way is better without composer.
I only use composer for installing packages from packagist.org
The reason I don't like installing CI using composer is because composer is not designed for slow internet connection.
I had bad experience before using composer with laravel.
not a good idea for slow connection.
This is also one of the BIG reason why I came back here in CodeIgniter.

Pls. don't make composer the only way to install codeigniter just add it as an option.

Just my opinion.