Installing Composer

When working with Frameworks, it is necessary to learn how to correctly handle the packages you are going to use in your project. In this post I will show you how to install Composer in Windows 7

What is Composer?

Composer is a dependency manager for PHP libraries that can be used for the installation of extensions and libraries required in a project (MediaWiki). For example, if your project needs a library to send emails, simply install it with Composer, and this will be responsible for downloading and installing the library, including any other dependency that allows proper operation.

Benefits of using Composer

  • The dependencies required by a package that is being downloaded are automatically installed by Composer, without you having to intervene in the process
  • The process to update packages is much easier and faster
  • Automation of the package installation process

Requirements:
PHP (Using XAMPP)

Getting Started

1. Download the installer for Windows de Composer:
https://getcomposer.org/download/


2. After downloading Composer, install it as Administrator:



3. Select the PHP command line you must use (You must already have installed PHP in your Windows environment):



3. If desired, add a Proxy server:


4. Install Composer:


5.Composer will show an alert about the use of the program. You must log out and restart to be able to use it correctly:


6. And that's it! Now you can use Composer!


Sources:
MediaWiki "Composer / Es." Composer / Es - MediaWiki, 11 Mar. 2016, www.mediawiki.org/wiki/Composer/en.

No comments

Powered by Blogger.