CodeIgniter Composer Installer |
(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. 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/in...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 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/`.
I've released v0.2.1: https://github.com/kenjis/codeigniter-co...r/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
I've released v0.2.2: https://github.com/kenjis/codeigniter-co...r/releases
* Add CodeIgniter3 Filename Checker installer If you like command line, you can do like this: Code: $ php bin/install.php ion-auth 2 It installs Ion Auth and CodeIgniter3 Filename Checker, and fixes class filenames of Ion Auth.
I've released v0.2.3: https://github.com/kenjis/codeigniter-co...r/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/ge...x-php-file
I released v0.3.1: https://github.com/kenjis/codeigniter-co...r/releases
* Now installer sets $config['index_page'] empty string
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/
"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.
I've just released v0.4.0: https://github.com/kenjis/codeigniter-co...r/releases
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. |
Welcome Guest, Not a member yet? Register Sign In |