Composer
Give me a moment. It has been a long time since my last PHP project, in 2011 using Symfony Framework 2.
Setup PHP environment
Now I’m using openSUSE. Other distribution should have similar method. You should install PHP7, PHP7 OpenSSL, and PHP7 PHAR.
% sudo zypper in php7 php7-openssl php7-phar
Download
I decided to download the composer.phar from the official site
Composer Inside Bootstrap.
Consider go back to bootstrap-less directory.
You may notice this composer.json in root directory.
{
"name": "twbs/bootstrap",
"description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
...
}
Now you can run composer.
% php composer.phar install
or
% php composer.phar update
Do not worry if this does nothing. We need this composer.json information, if we want to install bootstrap from outside.
Composer Outside Bootstrap.
You can install bootstrap using Composer, using a ready to use twbs/bootstrap.
% php composer.phar require twbs/bootstrap
Conclusion
That's all for now.
I hope that, this material useful.
Thank you for reading.