2017 © Pedro Peláez
 

library symlink-handler

Composer script handling symlinks

image

vanio/symlink-handler

Composer script handling symlinks

  • Saturday, October 29, 2016
  • by maryo
  • Repository
  • 2 Watchers
  • 1 Stars
  • 36 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Symlink Handler

Build Status Coverage Status PHP7 License, (*1)

Composer script handling creation of symlinks from your selected installed dependencies to location of your choice., (*2)

Installation

Installation can be done as usually using composer. composer require vanio/symlink-handler, (*3)

Usage

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

"require": {
    "vanio/symlink-handler": "dev-master",
    "components/jquery": "2.2.1"
},
"scripts": {
    "post-install-cmd": [
        "Vanio\\SymlinkHandler\\ScriptHandler::createSymlinks"
    ],
    "post-update-cmd": [
        "Vanio\\SymlinkHandler\\ScriptHandler::createSymlinks"
    ]
},
"extra": {
    "symlinks": {
        "components": "web/vendor/components"
    }
}

After running either composer install or composer update, jquery will be accessible from your web folder web/vendor/components/jquery/jquery.min.js., (*5)

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

The Versions

29/10 2016

dev-master

9999999-dev https://github.com/vaniocz/symlink-handler

Composer script handling symlinks

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marek Štípek

composer script symlink