ngmy/l4-dav
Composer 安装命令:
composer require ngmy/l4-dav
包简介
A simple WebDAV client library for Laravel 4
关键字:
README 文档
README
A simple WebDAV client library for Laravel 4.
Requirements
The L4Dav has the following requirements:
-
PHP 5.3+
-
Laravel 4.0+
Dependencies
The L4Dav has the following dependencies:
Installation
Add the package to your composer.json and run composer update:
{
"require": {
"ngmy/l4-dav": "dev-master"
}
}
Add the following to the list of service providers in app/config/app.php:
'Ngmy\L4Dav\L4DavServiceProvider',
Add the following to the list of class aliases in app/config/app.php:
'L4Dav' => 'Ngmy\L4Dav\Facades\L4Dav',
Configuration
After installing, you can publish the package's configuration file into your application, by running the following command:
php artisan config:publish ngmy/l4-dav
This will publish the config file to app/config/packages/ngmy/l4-dav/config.php where you modify the package configuration.
Examples
Basic Usage
Download a file from the WebDAV server
L4Dav::get('path/to/remote/file', '/path/to/local/file');
Upload a file to the WebDAV server
L4Dav::put('/path/to/local/file', 'path/to/remote/file');
Delete a file on the WebDAV server
L4Dav::delete('path/to/remote/file');
Copy a file on the WebDAV server
L4Dav::copy('path/to/source/file', 'path/to/dest/file');
Rename a file on the WebDAV server
L4Dav::move('path/to/source/file', 'path/to/dest/file');
Make a directory on the WebDAV server
L4Dav::mkdir('path/to/remote/directory/');
Check the existence of a directory on the WebDAV server
L4Dav::exists('path/to/remote/directory/');
List contents of a directory on the WebDAV server
L4Dav::ls('path/to/remote/directory/');
Get Response
Get the status code
$response = L4Dav::put('/path/to/local/file', 'path/to/remote/file'); $response->getStatus();
Get the status message
$response = L4Dav::put('/path/to/local/file', 'path/to/remote/file'); $response->getMessage();
Get the response body
$response = L4Dav::put('/path/to/local/file', 'path/to/remote/file'); $response->getBody();
ngmy/l4-dav 适用场景与选型建议
ngmy/l4-dav 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 633 次下载、GitHub Stars 达 9, 最近一次更新时间为 2014 年 02 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「WebDAV」 「Laravel 4」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ngmy/l4-dav 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ngmy/l4-dav 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ngmy/l4-dav 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Webdav Adapter for Flysystem
The flysystem extension for the Yii framework
TYPO3 FAL storage driver for storing files using Webdav (RFC 4918)
Laravel 5 WebDAV Filesystem
Alfabank REST API integration
Filesystem abstraction: Many filesystems, one API. Refactored for Legacy PHP 5.3
统计信息
- 总下载量: 633
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-02-09