Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialGonzalo Blasco
11,927 PointsInstalling Composer in Web Hosting for Student... How?... Instalando Composer en Web Hosting for Student... Cรณmo?...
I've been trying to install Composer into my Web Hosting for Student account without any luck. When ever I enter:
curl -sS https://getcomposer.org/installer | php
It just tell me to:
Add the following to the end of your php.ini
:
detect_unicode = Off
Below that it's tell me I can temporally make that change entering:
php -d detect_unicode=Off
But whenever I try it just hung. What can I do?
He estado intentando instalar Composer en mi cuenta de Web Hosting for Student sin ninguna suerte. Cada vez que ingreso:
curl -sS https://getcomposer.org/installer | php
Tan solo me dice:
Add the following to the end of your php.ini
:
detect_unicode = Off
Debajo de eso me dice puedo realizar ese cambio temporalmente ingresando:
php -d detect_unicode=Off
Pero siempre que lo intento se cuenta. ยฟQuรฉ puedo hacer?
Thanks. Gracias. =)
4 Answers
Ted Sumner
Courses Plus Student 17,967 PointsIf you are a beginner at PHP, I suggest you are way ahead of yourself. You should learn the basics of PHP first, then work on these courses. I have done a ton of PHP and it is my favorite language for design, but I have not gotten into Laravel yet. That is coming for me soon. I think you would be well served with starting with this track. Once you have competed that track you will have a good base for PHP. Then take the first course above because it covers Composer, Slim, and Twig. The Slim course may be dated by the time you get there, though, so you could stop at composer. Then take the Laravel course. It will take a while, but you will be well served to learn the basics to avoid all sorts of frustration.
Ted Sumner
Courses Plus Student 17,967 PointsComposer should be installed in your development environment. So if you code at that site, then you need it there and I would look at documentation for the site. If you are just trying to use it for hosting, you do not need it there.
Gonzalo Blasco
11,927 PointsDo I need Composer at my site to be able to use Laravel?... How can I install Laravel in my hosting account if it's not using Composer as their website say?
Ted Sumner
Courses Plus Student 17,967 PointsI have not done the Laravel course yet, but this is the server requirements from the documentation for 5.1:
Server Requirements
The Laravel framework has a few system requirements. Of course, all of these requirements are satisfied by the Laravel Homestead virtual machine:
PHP >= 5.5.9 OpenSSL PHP Extension PDO PHP Extension Mbstring PHP Extension Tokenizer PHP Extension
Composer is not listed as a server requirement. I have used Composer and it downloads the required dependencies into a folder in your project. The code is then accessible because it is part of the project files that you upload without the use of Composer on the server.
It is clear that you need to learn more about how Composer works. You should do this course at least until you get through composer. You should also think about the Laravel course.
Gonzalo Blasco
11,927 PointsThanks Ted... I really have no idea about Composer and Laravel... I'm just a beginner PHP developer...
Rifqi Fahmi
23,164 PointsYeah but in treehouse the composer already installed in the workspace. How about it didn't installed in the web server such as godaddy.com or webhostingforstudents.com ? How we install the composer ?? or we must upload the file one b one and make the directory one by one ?? T_T as I study in treehouse PHP is the hardest language for me T_T
Gonzalo Blasco
11,927 PointsComposer it's installed on the developer system. Using it you download the framework you like. Then, you can upload those files to your server, any of them.
Gonzalo Blasco
11,927 PointsGonzalo Blasco
11,927 PointsFrom http://laravel.com/docs/5.1
"Installing Laravel
Laravel utilizes Composer to manage its dependencies. So, before using Laravel, make sure you have Composer installed on your machine.
Via Laravel Installer
First, download the Laravel installer using Composer:
composer global require "laravel/installer=~1.1" Make sure to place the ~/.composer/vendor/bin directory in your PATH so the laravel executable can be located by your system.
Once installed, the simple laravel new command will create a fresh Laravel installation in the directory you specify. For instance, laravel new blog will create a directory named blog containing a fresh Laravel installation with all of Laravel's dependencies already installed. This method of installation is much faster than installing via Composer:
laravel new blog"
Ted Sumner
Courses Plus Student 17,967 PointsTed Sumner
Courses Plus Student 17,967 PointsRead carefully and you will see it says install Composer on your machine, not the server.