C3rd
Installing PHP composer.phar
Posted: 13 Jan 2013, 20:18pm - SundayThis guide is installing PHP composer.phar and proceed to ZendFramework 2.x setup/installation. First, go the your PHP installed directory then cast the command;
cd C:\php\bin
C:\php\bin>php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
At the same working directory, C:\php\bin, create a file named composer.bat and it should contains the following;
@ECHO OFF SET composerScript=composer.phar php "%~dp0%composerScript%" %*Then test it if its working...
C:\php>composer.bat
______
/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
/_/
Composer version dea4bdf
Usage:
[options] command [arguments]
Options:
--help -h Display this help message.
--quiet -q Do not output any message.
--verbose -v Increase verbosity of messages.
--version -V Display this application version.
--ansi Force ANSI output.
--no-ansi Disable ANSI output.
--no-interaction -n Do not ask any interactive question.
--profile Display timing and memory usage information
--working-dir -d If specified, use the given directory as working directory.
Available commands:
about Short information about Composer
config Set config options
create-project Create new project from a package into given directory.
depends Shows which packages depend on the given package
dump-autoload Dumps the autoloader
dumpautoload Dumps the autoloader
help Displays help for a command
init Creates a basic composer.json file in current directory.
install Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.
list Lists commands
require Adds required packages to your composer.json and installs them
search Search for packages
self-update Updates composer.phar to the latest version.
selfupdate Updates composer.phar to the latest version.
show Show information about packages
status Show a list of locally modified packages
update Updates your dependencies to the latest version according to composer.json, and updates the composer.lock file.
validate Validates a composer.json
C:\php>composer.bat -V
Composer version dea4bdf
That's it... You can now proceed in downloading the Zend Framework or Symfony. The next guide, I will be using Zend Framework 2.x in my case.
Reference: http://getcomposer.org/doc/00-intro.md#installation-windows
Search
Categories
Related Links
- Apache Web Server
- ASP Immigration Services Ltd.
- CentOS Linux
- Color Scheme Picker
- CSS Button Generator
- Deviant Art Account
- Don Tabaniag - GraphiCult
- Jerson Maglasang Weblog
- Joshua Manlunas
- Mark "mungkey" Vicente
- Matt Arnilo Baluyos
- MySQL
- Paul Labis
- PHP
- PrendStar
- Ridvan Baluyos
- Scott Davies
- SEO Fart XML-RPC Ping Tool
- Stripes Generator
- The Hero
- Ubuntu Linux
- Vim Carlo Nabora (DA)
- Wella Maria Hong
- What is my IP?
- Xavier University - Ateneo de Cagayan
- Zabyer Community