Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter Composer Installer
#11

(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/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
$ 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/`.
Reply
#12

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
controllers/auth.php              =>   controllers/Auth.php
Reply
#13

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
$ 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.
Reply
#14

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

I released v0.3.1: https://github.com/kenjis/codeigniter-co...r/releases

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

(This post was last modified: 09-02-2015, 02:02 PM by pixel.)

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/
Reply
#17

"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.
Reply
#18

(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
Reply
#19

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

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




Theme © iAndrew 2016 - Forum software by © MyBB