PHPackages                             kapersoft/flysystem-sharefile - 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. kapersoft/flysystem-sharefile

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

kapersoft/flysystem-sharefile
=============================

Flysystem Adapter for ShareFile

1.1.0(8y ago)516.8k12[2 PRs](https://github.com/kapersoft/flysystem-sharefile/pulls)MITPHPPHP ^7.0

Since Sep 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/kapersoft/flysystem-sharefile)[ Packagist](https://packagist.org/packages/kapersoft/flysystem-sharefile)[ Docs](https://github.com/kapersoft/flysystem-sharefile)[ RSS](/packages/kapersoft-flysystem-sharefile/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (8)Versions (3)Used By (0)

Flysystem adapter for Citrix ShareFile
======================================

[](#flysystem-adapter-for-citrix-sharefile)

[![Latest Version on Packagist](https://camo.githubusercontent.com/73b8194e624c84107db6344d8480c02aeccdc3ae4c20d4932858595bff1cbe29/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b61706572736f66742f666c7973797374656d2d736861726566696c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kapersoft/flysystem-sharefile)[![Build Status](https://camo.githubusercontent.com/7695aae59b08200f96b7876bc8783749057bb257427d8a686101a9dd75ad903d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b61706572736f66742f666c7973797374656d2d736861726566696c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/kapersoft/flysystem-sharefile)[![StyleCI](https://camo.githubusercontent.com/686835dacba92d941d76a94568fa806b3768c29e6cbd4f2a71dc173c6e629511/68747470733a2f2f7374796c6563692e696f2f7265706f732f3130333137383033392f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/103178039)[![Quality Score](https://camo.githubusercontent.com/27fad5abcf57b5ef6608a4f3b483cb2815924db896ac9a8fc71f7c477a176f25/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6b61706572736f66742f666c7973797374656d2d736861726566696c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/kapersoft/flysystem-sharefile)[![Total Downloads](https://camo.githubusercontent.com/27635455c87e88bc27605cf653a828a8ddc5674f3e58b57d1214758c131866ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b61706572736f66742f666c7973797374656d2d736861726566696c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kapersoft/flysystem-sharefile)

This package contains a [Flysystem](https://flysystem.thephpleague.com/) adapter for [Citrix ShareFile](https://www.sharefile.com). Under the hood my [Sharefile API package](https://github.com/kapersoft/sharefile-api) is used.

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

[](#installation)

You can install the package via composer:

```
composer require kapersoft/flysystem-sharefile
```

Usage
-----

[](#usage)

The first thing you need to do is get an OAuth2 key. Go to the [Get an API key](https://api.sharefile.com/rest/oauth2-request.aspx) section on the [ShareFile API site](https://api.sharefile.com/) to get this key.

With an OAuth2 key you can instantiate a `Kapersoft\Sharefile\Client` and setup the Flysystem adapter:

```
use League\Flysystem\Filesystem;
use Kapersoft\Sharefile\Client;
use Kapersoft\FlysystemSharefile\SharefileAdapter;

$client = new Client('hostname', 'client_id', 'secret', 'username', 'password');

$adapter = new SharefileAdapter($client);

$filesystem = new Filesystem($adapter);
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

In the `/tests`-folder are two tests defined

- `SharefileAdapterTest.php`
- `SharefileAdapterFunctionalTest.php`

To start both tests type in your terminal:

```
composer test
```

`SharefileAdapterTest.php` tests the `Kapersoft\FlysystemSharefile\SharefileAdapter`-class using [phpspec prophecy](https://github.com/phpspec/prophecy) and mock objects.

`SharefileAdapterFunctionalTest.php` is a set of functional tests using an online ShareFile drive . To enable this test, fill in your ShareFile credentials under section `` of the `phpunit.xml.dist`-file in the project root folder. Each test will create the folder named `Flysystem-sharefile-test` in your personal ShareFile drive for storing temporary test-files. When the test is completed, the `Flysystem-sharefile-test`-folder will be removed. A [WebDav](https://github.com/fruux/sabre-dav) connection to your ShareFile drive is used to assert all tests. *Note: Make sure WebDav is enabled for your ShareFile account (see  for more information).*

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.txt) for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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 ~4 days

Total

2

Last Release

3162d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b282b144777d8ee6a9f1d468dd4fd44e549e337fee20857af65252fa505aeca?d=identicon)[kapersoft](/maintainers/kapersoft)

---

Top Contributors

[![kapersoft](https://avatars.githubusercontent.com/u/13007854?v=4)](https://github.com/kapersoft "kapersoft (26 commits)")

---

Tags

citrixflysystemflysystem-adapterphpsharefilesharefile-apiapiFlysystemkapersoftflysystem-sharefilesharfile

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/kapersoft-flysystem-sharefile/health.svg)

```
[![Health](https://phpackages.com/badges/kapersoft-flysystem-sharefile/health.svg)](https://phpackages.com/packages/kapersoft-flysystem-sharefile)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[spatie/flysystem-dropbox

Flysystem Adapter for the Dropbox v2 API

3644.6M68](/packages/spatie-flysystem-dropbox)[mhetreramesh/flysystem-backblaze

Backblaze adapter for the flysystem filesystem abstraction library

62146.8k9](/packages/mhetreramesh-flysystem-backblaze)[justus/flysystem-onedrive

A flysystem driver for OneDrive that uses the Microsoft Graph API

48104.4k](/packages/justus-flysystem-onedrive)[jacekbarecki/flysystem-onedrive

OneDrive adapter for the flysystem filesystem abstraction library

2429.9k](/packages/jacekbarecki-flysystem-onedrive)[taffovelikoff/imagekit-adapter

Flysystem adapter for ImageKit.

1421.0k](/packages/taffovelikoff-imagekit-adapter)

PHPackages © 2026

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