Download the PHP package kapersoft/sharefile-api without Composer
On this page you can find all versions of the php package kapersoft/sharefile-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kapersoft/sharefile-api
More information about kapersoft/sharefile-api
Files in kapersoft/sharefile-api
Package sharefile-api
Short Description A minimal implementation of ShareFile Api
License MIT
Homepage https://github.com/kapersoft/sharefile-api
Informations about the package sharefile-api
A minimal implementation of the ShareFile Api
This is a minimal PHP implementation of the ShareFile API. It contains only the methods needed for my flysystem-sharefile adapter. I am open to PRs that add extra methods to the client.
Here are a few examples on how you can use the package:
Installation
You can install the package via composer:
Usage
The first thing you need to do is get an OAuth2 key. Go to the Get an API key section on the ShareFile API site to get this key.
With an OAuth2 key you can instantiate a Kapersoft\Sharefile\Client
:
Look in the source code of Kapersoft\ShareFile\Client
to discover the methods you can use. More examples can be found in the source code of Kapersoft\ShareFile\Test\TestShareFileApi
.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
In the /tests
-folder are two tests defined:
TestClient.php
tests theKapersoft\Sharefile\Client
-class using mock Guzzle objects;TestShareFileApi.php
tests theKapersoft\Sharefile\Client
-class using the live ShareFile API. To use this test fill in your ShareFile credentials under section<PHP>
of thephpunit.xml.dist
-file in the project root folder. Some tests need additional parameters to run. These parameters can be found in the first lines of the test.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.