PHPackages                             gasparonik/composer-symlinks - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. gasparonik/composer-symlinks

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

gasparonik/composer-symlinks
============================

Create relative symlinks based on getcwd() and relative data

1.4.1(5y ago)01.3k1MITPHPPHP &gt;7.0

Since Oct 30Pushed 5y agoCompare

[ Source](https://github.com/Gasparonik/composer-symlinks)[ Packagist](https://packagist.org/packages/gasparonik/composer-symlinks)[ RSS](/packages/gasparonik-composer-symlinks/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (15)Used By (0)

ComposerSymlinks
================

[](#composersymlinks)

Its provide a simple Composer script to symlink paths.

Installation
------------

[](#installation)

To install the latest stable version of this component, open a console and execute the following command:

```
$ composer require gasparonik/composer-symlinks

```

Usage
-----

[](#usage)

### 1. Define symlinks

[](#1-define-symlinks)

Create the symlinks definition adding a `somework/composer-symlinks` section inside the `extra` section of the composer.json file.

Set `skip-missing-target` to true if we should not throw exception if target path doesn't exists
Set `absolute-path` to true if you want to create realpath symlinks
Set `throw-exception` to false if you dont want to break creating on some error while check symlinks
Set `force-create` to force unlink link if something already exists on link path

You can set personal configs for any symlink.
For personal configs `link` must be defined

```
{
    "extra": {
        "somework/composer-symlinks": {
            "symlinks": {
                "common/upload": "web/upload",
                "common/static/dest": {
                    "link": "web/dest",
                    "skip-missing-target": false,
                    "absolute-path": true,
                    "throw-exception": false
                },
                "common/web": [
                    "web1",
                    "web2",
                    "web3"
                ],
                "common/local": {
                    "link": [
                        "web1/local",
                        "web2/local",
                        "web3/local"
                    ]
                }
            },
            "force-create": false,
            "skip-missing-target": false,
            "absolute-path": false,
            "throw-exception": true
        }
    }
}
```

### 3. Execute composer

[](#3-execute-composer)

DO NOT use --no-plugins for composer install or update

License
-------

[](#license)

This component is under the MIT license. See the complete license in the \[LICENSE\] file.

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Issues and feature requests are tracked in the \[Github issue tracker\].

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~101 days

Recently: every ~274 days

Total

13

Last Release

1912d ago

Major Versions

0.3.1 → 1.02018-02-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19801428?v=4)[Igor Pinchuk](/maintainers/somework)[@somework](https://github.com/somework)

![](https://www.gravatar.com/avatar/cae053887bac3f89ae3f7b3df50773c05ff40c191cfdf296e0d3918df9ed8c6f?d=identicon)[gasparonik](/maintainers/gasparonik)

---

Top Contributors

[![somework](https://avatars.githubusercontent.com/u/19801428?v=4)](https://github.com/somework "somework (9 commits)")[![pandmitr](https://avatars.githubusercontent.com/u/6427560?v=4)](https://github.com/pandmitr "pandmitr (2 commits)")[![Gasparonik](https://avatars.githubusercontent.com/u/58563793?v=4)](https://github.com/Gasparonik "Gasparonik (1 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/gasparonik-composer-symlinks/health.svg)

```
[![Health](https://phpackages.com/badges/gasparonik-composer-symlinks/health.svg)](https://phpackages.com/packages/gasparonik-composer-symlinks)
```

###  Alternatives

[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M16](/packages/vaimo-composer-patches)[mglaman/composer-drupal-lenient

1317.4M15](/packages/mglaman-composer-drupal-lenient)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5341.9M446](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2122.6M172](/packages/drupal-core-project-message)[olvlvl/composer-attribute-collector

A convenient and near zero-cost way to retrieve targets of PHP 8 attributes

184108.8k8](/packages/olvlvl-composer-attribute-collector)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

41716.4k2](/packages/lullabot-drainpipe)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
