Posts Tagged with install composer

Displaying 1-4 of 4 results.
Wiki: Installing Yii2 in XAMPP to htdocs directorywiki
posted by admin on February 1, 2017
The First, dont forget to install "fxp/composer-asset-plugin:^1.2.0"

php composer.phar global require "fxp/composer-asset-plugin:^1.2.0"

Waiting for result

Changed current directory to C:/Users/Arthur/AppData/Roaming/Composer
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing fxp/composer-asset-plugin (v1.2.2) Downloading: 100%
Writing lock file
Generating autoload files

The Second, start instalation

c:\xampp\php>php composer.phar create-project --prefer-dist yiisoft/yii2-app-bas
ic ../htdocs/yiibasic

Waiting for result

Installing yiisoft/yii2-app-basic (2.0.10)
- Installing yiisoft/yii2-app-basic (2.0.10) Downloading: 100%
Created project in ../htdocs/yiibasic
Loading composer repositories with package information
Updating dependencies (including require-dev)
Reading bower.json of bower-asset/jquery (1.11.3)
Could not fetch https://api.github.com/repos/jquery/jquery-dist/commits/14722909
17f17af05e98007136096784f9051fab, please create a GitHub OAuth token to go over
the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+
on+dev-pk+2017-02-01+0920
to retrieve a token. It will be stored in "C:/Users/╚фЁшё/AppData/Roaming/Compos
er/auth.json" for future use by Composer.
Token (hidden):
Token stored successfully.
Package operations: 58 installs, 0 updates, 0 removals
- Installing yiisoft/yii2-composer (2.0.5) Downloading: 100%
- Installing swiftmailer/swiftmailer (v5.4.5) Downloading: 100%
- Installing bower-asset/jquery (2.2.4) Downloading: 100%
- Installing bower-asset/yii2-pjax (v2.0.6) Downloading: 100%
- Installing bower-asset/punycode (v1.3.2) Downloading: 100%
- Installing bower-asset/jquery.inputmask (3.2.7) Downloading: 100%
- Installing cebe/markdown (1.1.1) Downloading: 100%
- Installing ezyang/htmlpurifier (v4.8.0) Downloading: 100%
- Installing yiisoft/yii2 (2.0.10) Downloading: 100%
- Installing yiisoft/yii2-swiftmailer (2.0.6) Downloading: 100%
- Installing bower-asset/bootstrap (v3.3.7) Downloading: 100%
- Installing yiisoft/yii2-bootstrap (2.0.6) Downloading: 100%
- Installing yiisoft/yii2-debug (2.0.7) Downloading: 100%
- Installing bower-asset/typeahead.js (v0.11.1) Downloading: 100%
- Installing phpspec/php-diff (v1.1.0) Downloading: 100%
- Installing yiisoft/yii2-gii (2.0.5) Downloading: 100%
- Installing fzaninotto/faker (v1.6.0) Downloading: 100%
- Installing yiisoft/yii2-faker (2.0.3) Downloading: 100%
- Installing sebastian/diff (1.4.1) Downloading: 100%
- Installing sebastian/recursion-context (2.0.0) Downloading: 100%
- Installing sebastian/exporter (2.0.0) Downloading: 100%
- Installing sebastian/comparator (1.2.4) Downloading: 100%
- Installing behat/gherkin (v4.4.5) Downloading: 100%
- Installing symfony/polyfill-mbstring (v1.3.0) Downloading: 100%
- Installing symfony/dom-crawler (v3.2.2) Downloading: 100%
- Installing symfony/css-selector (v3.2.2) Downloading: 100%
- Installing symfony/browser-kit (v3.2.2) Downloading: 100%
- Installing symfony/yaml (v3.2.2) Downloading: 100%
- Installing symfony/event-dispatcher (v3.2.2) Downloading: 100%
- Installing psr/log (1.0.2) Downloading: 100%
- Installing symfony/debug (v3.2.2) Downloading: 100%
- Installing symfony/console (v3.2.2) Downloading: 100%
- Installing symfony/finder (v3.2.2) Downloading: 100%
- Installing psr/http-message (1.0.1) Downloading: 100%
- Installing guzzlehttp/psr7 (1.3.1) Downloading: 100%
- Installing sebastian/version (2.0.1) Downloading: 100%
- Installing sebastian/environment (2.0.0) Downloading: 100%
- Installing sebastian/code-unit-reverse-lookup (1.0.0) Downloading: Connectin
Downloading: 100%
- Installing phpunit/php-token-stream (1.4.9) Downloading: 100%
- Installing phpunit/php-text-template (1.2.1) Downloading: 100%
- Installing phpunit/php-file-iterator (1.4.2) Downloading: 100%
- Installing phpunit/php-code-coverage (4.0.5) Downloading: 100%
- Installing sebastian/resource-operations (1.0.0) Downloading: 100%
- Installing sebastian/object-enumerator (2.0.0) Downloading: 100%
- Installing sebastian/global-state (1.1.1) Downloading: 100%
- Installing doctrine/instantiator (1.0.5) Downloading: 100%
- Installing phpunit/phpunit-mock-objects (3.4.3) Downloading: 100%
- Installing phpunit/php-timer (1.0.8) Downloading: 100%
- Installing webmozart/assert (1.2.0) Downloading: 100%
- Installing phpdocumentor/reflection-common (1.0) Downloading: 100%
- Installing phpdocumentor/type-resolver (0.2.1) Downloading: 100%
- Installing phpdocumentor/reflection-docblock (3.1.1) Downloading: Connecting
Downloading: 100%
- Installing phpspec/prophecy (v1.6.2) Downloading: 100%
- Installing myclabs/deep-copy (1.6.0) Downloading: 100%
- Installing phpunit/phpunit (5.7.9) Downloading: 100%
- Installing codeception/base (2.2.8) Downloading: 100%
- Installing codeception/verify (0.3.2) Downloading: 100%
- Installing codeception/specify (0.4.6) Downloading: 100%
symfony/browser-kit suggests installing symfony/process ()
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/event-dispatcher suggests installing symfony/http-kernel ()
symfony/console suggests installing symfony/filesystem ()
symfony/console suggests installing symfony/process ()
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.4.0)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/phpunit-mock-objects suggests installing ext-soap (*)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
phpunit/phpunit suggests installing ext-xdebug (*)
codeception/base suggests installing flow/jsonpath (For using JSONPath in REST m
odule)
codeception/base suggests installing phpseclib/phpseclib (for SFTP option in FTP
Module)
codeception/base suggests installing league/factory-muffin (For DataFactory modu
le)
codeception/base suggests installing league/factory-muffin-faker (For Faker supp
ort in DataFactory module)
codeception/base suggests installing symfony/phpunit-bridge (For phpunit-bridge
support)
Writing lock file
Generating autoload files
> yii\composer\Installer::postCreateProject
chmod('runtime', 0777)...done.
chmod('web/assets', 0777)...done.
chmod('yii', 0755)...done.
Read more
Wiki: Composer can be installed by following the instructionswiki
posted by admin on February 1, 2017
This process looks as follows:

curl -sS https://getcomposer.org/installer | php

nstaller | php
[/plain]
Alternatively, if you don't have cURL available on your system, it can be installed through PHP itself:

php -r "readfile('https://getcomposer.org/installer');" | php
Read more
Wiki: Installing Composer to Windwos by XAMPPwiki
posted by admin on February 1, 2017
Open your CMD Line - Command Prompt
1. Go to your php.exe file by command

cd c:\xampp\php\

2. Type composer instalation command

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '55d6ead61b29c7bdee5cccfb50076874187bd9f21f65d8991d46ec5cc90518f447387fb9f76ebae1fbbacf329e583e30') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

And enjoy result like this

c:\xampp\php>php -r "copy('https://getcomposer.org/installer', 'composer-setup.p
hp');"

c:\xampp\php>php -r "if (hash_file('SHA384', 'composer-setup.php') === '55d6ead6
1b29c7bdee5cccfb50076874187bd9f21f65d8991d46ec5cc90518f447387fb9f76ebae1fbbacf32
9e583e30') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlin
k('composer-setup.php'); } echo PHP_EOL;"
Installer verified

c:\xampp\php>php composer-setup.php
All settings correct for using Composer
Downloading...

Composer (version 1.3.2) successfully installed to: C:\xampp\php\composer.phar
Use it: php composer.phar
Read more
Resolved: Composer Ubuntu installation and errors
posted by admin on January 18, 2017
I am trying to install composer by that way and get some errors.
Instalation
Step 1: Ensure the Curl dependency is installed.

sudo apt-get -y install curl


Step 2: Download the Composer installer and pass it to php.

sudo curl -sS https://getcomposer.org/installer | php

My error in this step:

The program 'php' can be found in the following packages:
* php7.0-cli
* hhvm
Try: sudo apt install <selected package>
curl: (23) Failed writing body (0 != 16133)
Read more