2017 © Pedro Peláez
 

composer-plugin composer-shared-installer

Install package in Composer to global shared.

image

ngyuki/composer-shared-installer

Install package in Composer to global shared.

  • Friday, June 12, 2015
  • by ngyuki
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Example

Edit composer.json., (*1)

{
    "require": {
        "symfony/filesystem": "~2.0"
    },
    "require-dev": {
        "phpunit/phpunit": "3.7.*",
        "ngyuki/composer-shared-installer": "*"
    },
    "extra": {
        "shared": {
            "exclude": [
                "phpunit/phpunit"
            ]
        }
    }
}

Run composer update command., (*2)

$ composer update

Create sample.php., (*3)

<?php
require 'vendor/autoload.php';

use Symfony\Component\Filesystem\Filesystem;

$ref = new ReflectionClass('Symfony\Component\Filesystem\Filesystem');
echo $ref->getFileName(), PHP_EOL;

$ref = new ReflectionClass('PHPUnit_Framework_TestCase');
echo $ref->getFileName(), PHP_EOL;

Run sample.php., (*4)

$ php sample.php

Symfony Filesystem will be installed global., (*5)

/home/your/.composer/shared/symfony/filesystem-2.3.6.0/Symfony/Component/Filesystem/Filesystem.php

PHPUnit will be installed local, because your exclude it., (*6)

/home/your/project/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php

The Versions

12/06 2015

dev-master

9999999-dev https://github.com/ngyuki/composer-shared-installer

Install package in Composer to global shared.

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.0

 

The Development Requires

by Avatar ngyuki

composer installer

09/11 2013

0.0.1

0.0.1.0 https://github.com/ngyuki/composer-shared-installer

Install package in Composer to global shared.

  Sources   Download

MIT

The Requires

  • composer-plugin-api *

 

The Development Requires

by Avatar ngyuki

composer installer