proclame/clubplanner-laravel

Laravel wrapper around the clubplanner-php package

v0.1.1 2020-10-09 09:09 UTC

This package is auto-updated.

Last update: 2024-11-09 18:22:19 UTC


README

This Laravel package is a wrapper for proclame/clubplanner-php.

Install

Via Composer

$ composer require proclame/clubplanner-laravel

Add the ServiceProvider and the Facade to your config/app.php:

'providers' => [
  ...
  Proclame\Clubplanner\ClubplannerServiceProvider::class,
],
'aliases' => [
  ...
  'Clubplanner' => Proclame\Clubplanner\ClubplannerFacade::class,
]

Then run the following command to publish the config to your config/ directory.

$ php artisan vendor:publish --tag=config
return [
    'clubplanner_url' => 'apiurl.clubplanner.be', // the url for your tenant on clubplanner
    'clubplanner_token' => 'MYTOKEN', // the token for your tenant on clubplanner
];

Usage

$member = Clubplanner::member()->find(123);

For more usage information, see proclame/clubplanner-php

Credits

License

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