Downloads > composer
< Back to DownloadsBelow you can setup details to get ICEcoder into your project.
Composer info:
Visit Composer page
Install type: Composer
Require: composer require icecoder/icecoder
Setup:
Composer typically installs packages into the vendor dir, but of course ICEcoder is an app you want to see in the browser and not just a library. So you'll need to not only require the package but also move it into your wwwroot (document root) dir afterwards.
Below is the recommended items to add into your composer.json file to achieve this automatically.
.{ "require": { "icecoder/icecoder": "*" }, "scripts" : { "post-autoload-dump": [ "cp -r vendor/icecoder/icecoder ICEcoder" ] }, "minimum-stability": "dev", "prefer-stable": true }
Now if you run:
composer install
...it will download ICEcoder and after installations are complete, move it to the root of your project.
You'll need to ensure both the ICEcoder dir and the wwwroot dir have permissions to read, write and execute. This can be done by changing permissions (using chmod), but it it safer and so better, to use chown:
chown -R www-data.www-data /var/www/html
This will recursively set the www-data user as both the owner and group users for files on the /var/www/html dir (which ICEcoder dir is of course inside of, at say /var/www/html/ICEcoder).
Now you can visit yoursite.com/ICEcoder to view ICEcoder, sign in and start coding!
Tip: If using ICEcoder locally, you can use:
php -S localhost:8080
...to get PHP to start a simple web server. You can then visit localhost:8080/ICEcoder