https://github.com/diegosouza/laravel-zimbra
A Laravel wrapper to interact with Zimbra API
https://github.com/diegosouza/laravel-zimbra
api laravel zimbra
Last synced: 11 months ago
JSON representation
A Laravel wrapper to interact with Zimbra API
- Host: GitHub
- URL: https://github.com/diegosouza/laravel-zimbra
- Owner: diegosouza
- License: gpl-3.0
- Created: 2019-09-05T21:01:14.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-15T03:25:44.000Z (almost 7 years ago)
- Last Synced: 2025-06-19T05:38:46.047Z (about 1 year ago)
- Topics: api, laravel, zimbra
- Language: PHP
- Size: 86.9 KB
- Stars: 5
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laravel-zimbra
## Quick start
Install the package:
```bash
composer require diegosouza/laravel-zimbra --dev
```
Publish the configuration file using:
```bash
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:
```php
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:
```php
namespace App\Http\Controllers;
use DiegoSouza\Zimbra\Facades\Zimbra;
class YourController extends Controller
{
public function index()
{
$result = Zimbra::getAllCos();
// use the api result
}
}
```
