kapersoft/flysystem-sharefile
Composer 安装命令:
composer require kapersoft/flysystem-sharefile
包简介
Flysystem Adapter for ShareFile
README 文档
README
This package contains a Flysystem adapter for Citrix ShareFile. Under the hood my Sharefile API package is used.
Installation
You can install the package via composer:
composer require kapersoft/flysystem-sharefile
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 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
Please see CHANGELOG for more information what has changed recently.
Testing
In the /tests-folder are two tests defined
SharefileAdapterTest.phpSharefileAdapterFunctionalTest.php
To start both tests type in your terminal:
composer test
SharefileAdapterTest.php tests the Kapersoft\FlysystemSharefile\SharefileAdapter-class using 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 <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).
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email kapersoft@gmail.com instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
kapersoft/flysystem-sharefile 适用场景与选型建议
kapersoft/flysystem-sharefile 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16.8k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2017 年 09 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「Flysystem」 「kapersoft」 「flysystem-sharefile」 「sharfile」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 kapersoft/flysystem-sharefile 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kapersoft/flysystem-sharefile 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 kapersoft/flysystem-sharefile 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Backblaze B2 Cloud Storage for Laravel 5. Original by Paul Olthof (@hpolthof) continued by @bringyourownideas
A minimal implementation of ShareFile Api
Virtual Filesystem Storage Adapter for Laravel
Adds Silverstripe Flysystem support for using the Azure Blob adapter
Flysystem adapter for OneDrive or SharePoint
A PSR-7 compatible library for making CRUD API endpoints
统计信息
- 总下载量: 16.8k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-11