Package Data | |
---|---|
Maintainer Username: | dpslwk |
Maintainer Contact: | dps.lwk@gmail.com (Matt Lloyd) |
Package Create Date: | 2017-01-02 |
Package Last Update: | 2024-08-12 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 15:05:12 |
Package Statistics | |
---|---|
Total Downloads: | 1,840 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 4 |
This is a laravel/(lumen?) client library for use with dpslwk/vimbadmin-api
ViMbAdmin is a web based virtual mailbox administration system for dovecote and posftix.
The down side of ViMdAdmin is that it has no APi front end. At Nottingham Hackspace we needed to change our mailbox aliases from the Hackspace Management System (HMS). As the systems run on two different server a quick REST api was thrown together for consumption by HMS 2.0. This is the client package for use in HMS 2.0
Via Composer
$ composer require lwk/vimbadmin-laravel-client
The following service provider will be autodiscovered for laravel 5.5+.
LWK\ViMbAdmin\ViMbAdminServiceProvider::class,
Define setup in .env with the following values
VIMBADMIN_URL
- Url for api endpointVIMBADMIN_ID
- Client IdVIMBADMIN_SECRET
- Client SecretVIMBADMIN_DRIVER
- Token store provider [json, eloquent, doctrine]VIMBADMIN_FILE
- File name for json storeVIMBADMIN_MODEL
- Eloquent modelVIMBADMIN_ENITITY
- Docrotine Entityor Publish the config and edit as needed
php artisan vendor:publish --provider="LWK\ViMbAdmin\ViMbAdminServiceProvider" --tag=config
If using either eloquent
or doctrine
token storage db migrations and mappings need to be provided.
$client = App::make(LWK\ViMbAdminClient());
echo $client->findDomains();
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email dps.lwk@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.