Suppose you are working on a PHP project and you need a lot of dependencies for your project. You are on a strict deadline, yet, you cannot proceed ahead before adding those dependencies. You discovered that you can use Composer to install dependencies automatically. You now need to install Composer.
The aim of this activity is to get you acquainted with Composer installation.
To perform this activity, follow these steps:
If on Windows, navigate to the
framework
folder and launch the php server:php –S localhost:8000 –t Webroot
Note
The
–S
means that run the server and use localhost:8000 as it's address, and–t Webroot
sets the documentroot
to theWebroot
folder.The Terminal output will look like this (some of the details will be different on your system):
PHP 7.1.4 Development Server started at Wed Nov 29 20:37:27 2017 Listening on http://localhost:8000 Document root is /Users/davidcarr/Dropbox...