ogestor/laravel-zimbra
Composer 安装命令:
composer require ogestor/laravel-zimbra
包简介
A Laravel wrapper to interact with Zimbra API.
README 文档
README
Quick start
Install the package:
composer require ogestor/laravel-zimbra --dev
Publish the configuration file using:
php artisan vendor:publish --provider="DiegoSouza\Zimbra\ZimbraServiceProvider"
Then provide the values to config/zimbra.php.
Usage
The wrapper class is DiegoSouza\Zimbra\ZimbraApiClient. You can have it injected somewhere:
namespace App\Http\Controllers; use DiegoSouza\Zimbra\ZimbraApiClient; class YourController extends Controller { public function index(ZimbraApiClient $zimbra) { $result = $zimbra->getAllCos(); // use the api result } }
Or you can use it's methods through the Facade:
namespace App\Http\Controllers; use DiegoSouza\Zimbra\Facades\Zimbra; class YourController extends Controller { public function index() { $result = Zimbra::getAllCos(); // use the api result } }
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2022-11-21