2017 © Pedro Peláez
 

library composer-symlinks

Composer script handling symlinks

image

kporras07/composer-symlinks

Composer script handling symlinks

  • Wednesday, July 12, 2017
  • by kporras07
  • Repository
  • 0 Watchers
  • 2 Stars
  • 19,195 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 4 Open issues
  • 1 Versions
  • 48 % Grown

The README.md

Symlink Handler

Build Status, (*1)

Composer script handling creation of symlinks inside your composer project., (*2)

Note: Symlinks will become files copy when composer is run with --no-dev, (*3)

Installation

Installation can be done as usually using composer. composer require kporras07/composer-symlinks, (*4)

Usage

Add the following in your root composer.json file:, (*5)

"require": {
    "kporras07/composer-symlinks": "dev-master"
},
"scripts": {
    "post-install-cmd": [
        "Kporras07\\ComposerSymlinks\\ScriptHandler::createSymlinks"
    ],
    "post-update-cmd": [
        "Kporras07\\ComposerSymlinks\\ScriptHandler::createSymlinks"
    ]
},
"extra": {
    "symlinks": {
        "components": "web/components"
    }
}

After running either composer install or composer update, components folder will be accessible from your web folder web/components/., (*6)

But of course, you have to be careful when making symlinks to a folder which is publicly accessible., (*7)

The Versions

12/07 2017

dev-master

9999999-dev https://github.com/kporras07/composer-symlinks

Composer script handling symlinks

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kevin Porras

composer script symlink