PHPackages                             falc/flysystem-sftp-symlink-plugin - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. falc/flysystem-sftp-symlink-plugin

ActiveLibrary[File &amp; Storage](/categories/file-storage)

falc/flysystem-sftp-symlink-plugin
==================================

Sftp symlink plugin for Flysystem.

v1.2.0(10y ago)313.1k1MITPHP

Since Jan 27Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Falc/FlysystemSftpSymlinkPlugin)[ Packagist](https://packagist.org/packages/falc/flysystem-sftp-symlink-plugin)[ RSS](/packages/falc-flysystem-sftp-symlink-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Flysystem Sftp Symlink Plugin
=============================

[](#flysystem-sftp-symlink-plugin)

Requirements
------------

[](#requirements)

- [Flysystem](http://flysystem.thephpleague.com/) &gt;= 1.0.0
- [flysystem-sftp](https://github.com/thephpleague/flysystem-sftp) &gt;= 1.0.0

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

[](#installation)

Using composer:

```
composer require falc/flysystem-sftp-symlink-plugin

```

Or add it manually:

```
{
    "require": {
        "falc/flysystem-sftp-symlink-plugin": "1.*"
    }
}
```

Usage
-----

[](#usage)

This plugin requires a `Filesystem` instance using the [Sftp adapter](http://flysystem.thephpleague.com/adapter/sftp/).

```
use Falc\Flysystem\Plugin\Symlink\Sftp as SftpSymlinkPlugin;
use League\Flysystem\Adapter\Sftp as SftpAdapter;
use League\Flysystem\Filesystem;

$filesystem = new Filesystem(new SftpAdapter(array(
    'host' => 'example.com',
    'port' => 22,
    'username' => 'username',
    'password' => 'password',
    'privateKey' => 'path/to/or/contents/of/privatekey',
    'root' => '/',
    'timeout' => 10
)));
```

### Symlink

[](#symlink)

Use `symlink($target, $symlink)` to create a symlink.

```
$filesystem->addPlugin(new SftpSymlinkPlugin\Symlink());

$success = $filesystem->symlink('/tmp/some/target', '/tmp/symlink');
```

### DeleteSymlink

[](#deletesymlink)

Use `deleteSymlink($symlink)` to delete a symlink.

```
$filesystem->addPlugin(new SftpSymlinkPlugin\DeleteSymlink());

$success = $filesystem->deleteSymlink('/tmp/symlink');
```

### IsSymlink

[](#issymlink)

Use `isSymlink($filename)` to check if a file exists and is a symlink.

```
$filesystem->addPlugin(new SftpSymlinkPlugin\IsSymlink());

$isSymlink = $filesystem->isSymlink('/tmp/symlink');
```

### Full and relative paths

[](#full-and-relative-paths)

The above examples show how to create symlinks using `/` as root and full paths. But it is possible to use relative paths too.

```
use Falc\Flysystem\Plugin\Symlink\Sftp as SftpSymlinkPlugin;
use League\Flysystem\Adapter\Sftp as SftpAdapter;
use League\Flysystem\Filesystem;

$filesystem = new Filesystem(new SftpAdapter(array(
    'host' => 'example.com',
    'port' => 22,
    'username' => 'username',
    'password' => 'password',
    'privateKey' => 'path/to/or/contents/of/privatekey',
    'root' => '/home/falc',
    'timeout' => 10
)));

$filesystem->addPlugin(new SftpSymlinkPlugin\Symlink());
$filesystem->addPlugin(new SftpSymlinkPlugin\IsSymlink());
$filesystem->addPlugin(new SftpSymlinkPlugin\DeleteSymlink());

// Result: /home/falc/flytest -> /home/falc/projects/cli/flytest
$filesystem->symlink('projects/cli/flytest', 'flytest');

// It is possible to check it or delete it in the same way:
$isSymlink = $filesystem->isSymlink('flytest');
$filesystem->deleteSymlink('flytest');
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~160 days

Total

3

Last Release

3801d ago

### Community

Maintainers

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

---

Top Contributors

[![Falc](https://avatars.githubusercontent.com/u/246051?v=4)](https://github.com/Falc "Falc (12 commits)")

---

Tags

pluginFlysystemsftpsymlink

### Embed Badge

![Health badge](/badges/falc-flysystem-sftp-symlink-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/falc-flysystem-sftp-symlink-plugin/health.svg)](https://phpackages.com/packages/falc-flysystem-sftp-symlink-plugin)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M789](/packages/league-flysystem-aws-s3-v3)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6129.6M91](/packages/league-flysystem-sftp-v3)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[sistemi-etime/flysystem-plugin-aws-s3-v3

AWS S3 plugin for Flysystem.

11154.2k1](/packages/sistemi-etime-flysystem-plugin-aws-s3-v3)[jerodev/flysystem-v3-smb-adapter

SMB adapter for Flysystem v3

1289.9k1](/packages/jerodev-flysystem-v3-smb-adapter)

PHPackages © 2026

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