diegosouza / laravel-zimbra
A Laravel wrapper to interact with Zimbra API.
dev-master
2019-09-15 03:25 UTC
Requires
- php: ^7.1.3
- laravel/framework: >=5.8 || ^6.0
- zimbra-api/soap-api: ^1.1
Requires (Dev)
- phpstan/phpstan: ^0.11.15
This package is auto-updated.
Last update: 2026-04-15 20:05:52 UTC
README
Quick start
Install the package:
composer require diegosouza/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
}
}