https://github.com/supsign/composer-symlinks
https://github.com/supsign/composer-symlinks
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/supsign/composer-symlinks
- Owner: supsign
- Created: 2021-07-09T20:20:57.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-15T20:08:08.000Z (almost 5 years ago)
- Last Synced: 2025-02-25T13:35:44.503Z (over 1 year ago)
- Language: PHP
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```php
"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.