Skip to content

supsign/composer-zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

Symlink Handler

Composer script handling creation of symlinks inside your composer project.

Note: Symlinks will become files copy when composer is run with --no-dev

Installation

Installation can be done as usually using composer. composer require supsign/composer-symlinks

Usage

Add the following in your root composer.json file:

"require": {
    "supsign/composer-symlinks": "dev-master"
},
"scripts": {
    "post-install-cmd": [
        "Supsign\\ComposerSymlinks\\ScriptHandler::createSymlinks"
    ],
    "post-update-cmd": [
        "Supsign\\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/.

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages