ansjabar / laravel-azure-calendar
Add events to Azure Calendar using OAauth
0.1.1
2022-11-24 08:24 UTC
Requires
- php: ^7.0|^8.0
- league/oauth2-client: ^2.6
- microsoft/microsoft-graph: ^1.83
Requires (Dev)
- ext-curl: *
README
Laravel handler to add events to Azure Calendars.
Installation
Require this package with composer.
$ composer require ansjabar/laravel-azure-calendar
Integration
$ php artisan vendor:publish --provider="AnsJabar\LaravelAzureCalendar\CalendarServiceProvider"
Add AZURE_CLIENT_ID
, AZURE_CLIENT_SECRET
and 'AZURE_REDIRECT_BACK
to your .env
file.
Add result of following code to Redirect URL
config('app.url').'/azure-calendar/callback' // http://localhost:8000/azure-calendar/callback
Usasge
(new \AnsJabar\LaravelAzureCalendar\Calendar( $from, \\ Must be instance of Carbon $to, \\ Must be instance of Carbon 'Summary of the event' ))->createEvent();
License
This laravel-teams-logger package is available under the MIT license. See the LICENSE file for more info.