2017 © Pedro Peláez
 

library vimbadmin-laravel-client

Laravel client for ViMbAdmin-api

image

lwk/vimbadmin-laravel-client

Laravel client for ViMbAdmin-api

  • Thursday, August 31, 2017
  • by dpslwk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 351 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

vimbadmin-laravel-client

Latest Version on Packagist ![Software License][ico-license] Total Downloads, (*1)

This is a laravel/(lumen?) client library for use with dpslwk/vimbadmin-api, (*2)

ViMbAdmin is a web based virtual mailbox administration system for dovecote and posftix., (*3)

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, (*4)

  • http://github.com/dpslwk/vimbadmin-api
  • http://www.vimbadmin.net
  • http://nottinghack.org.uk
  • https://github.com/NottingHack/hms2

Install

Via Composer, (*5)

``` bash $ composer require lwk/vimbadmin-laravel-client, (*6)


The following service provider will be autodiscovered for laravel 5.5+.

LWK\ViMbAdmin\ViMbAdminServiceProvider::class,, (*7)


Define setup in .env with the following values * `VIMBADMIN_URL` - Url for api endpoint * `VIMBADMIN_ID` - Client Id * `VIMBADMIN_SECRET` - Client Secret * `VIMBADMIN_DRIVER` - Token store provider [json, eloquent, doctrine] * `VIMBADMIN_FILE` - File name for json store * `VIMBADMIN_MODEL` - Eloquent model * `VIMBADMIN_ENITITY` - Docrotine Entity or Publish the config and edit as needed

php artisan vendor:publish --provider="LWK\ViMbAdmin\ViMbAdminServiceProvider" --tag=config, (*8)


If using either `eloquent` or `doctrine` token storage db migrations and mappings need to be provided. ## Usage ``` php $client = App::make(LWK\ViMbAdminClient()); echo $client->findDomains();

Change log

Please see CHANGELOG for more information on what has changed recently., (*9)

Testing

bash $ composer test, (*10)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*11)

Security

If you discover any security related issues, please email dps.lwk@gmail.com instead of using the issue tracker., (*12)

Credits

License

The MIT License (MIT). Please see License File for more information., (*13)

The Versions