2017 © Pedro Peláez
 

library flysystem-sharefile

Flysystem Adapter for ShareFile

image

kapersoft/flysystem-sharefile

Flysystem Adapter for ShareFile

  • Wednesday, April 4, 2018
  • by kapersoft
  • Repository
  • 1 Watchers
  • 3 Stars
  • 163 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 101 % Grown

The README.md

Flysystem adapter for Citrix ShareFile

Latest Version on Packagist Build Status StyleCI Quality Score Total Downloads, (*1)

This package contains a Flysystem adapter for Citrix ShareFile. Under the hood my Sharefile API package is used., (*2)

Installation

You can install the package via composer:, (*3)

``` bash composer require kapersoft/flysystem-sharefile, (*4)


## 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: ``` php 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

Please see CHANGELOG for more information what has changed recently., (*5)

Testing

In the /tests-folder are two tests defined - SharefileAdapterTest.php - SharefileAdapterFunctionalTest.php, (*6)

To start both tests type in your terminal: bash composer test, (*7)

SharefileAdapterTest.php tests the Kapersoft\FlysystemSharefile\SharefileAdapter-class using phpspec prophecy and mock objects., (*8)

SharefileAdapterFunctionalTest.php is a set of functional tests using an online ShareFile drive . To enable this test, fill in your ShareFile credentials under section <PHP> 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 connection to your ShareFile drive is used to assert all tests. Note: Make sure WebDav is enabled for your ShareFile account (see https://support.citrix.com/article/CTX207863 for more information)., (*9)

Contributing

Please see CONTRIBUTING for details., (*10)

Security

If you discover any security related issues, please email kapersoft@gmail.com instead of using the issue tracker., (*11)

License

The MIT License (MIT). Please see License File for more information., (*12)

The Versions

04/04 2018

dev-master

9999999-dev https://github.com/kapersoft/flysystem-sharefile

Flysystem Adapter for ShareFile

  Sources   Download

MIT

The Requires

 

The Development Requires

api flysystem kapersoft flysystem-sharefile sharfile

16/09 2017

1.1.0

1.1.0.0 https://github.com/kapersoft/flysystem-sharefile

Flysystem Adapter for ShareFile

  Sources   Download

MIT

The Requires

 

The Development Requires

api flysystem kapersoft flysystem-sharefile sharfile

12/09 2017
11/09 2017

dev-analysis-zd4YAw

dev-analysis-zd4YAw https://github.com/kapersoft/flysystem-sharefile

Flysystem Adapter for ShareFile

  Sources   Download

MIT

The Requires

 

The Development Requires

api flysystem kapersoft flysystem-sharefile sharfile