chrisreedio / laravel-azure-graph
Provides an interface to the Azure Graph
Requires
- php: ^8.2
- saloonphp/laravel-plugin: ^3.0
- saloonphp/pagination-plugin: ^2.0
- saloonphp/saloon: ^3.0
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- dereuromark/composer-prefer-lowest: ^0.1.10
- larastan/larastan: ^2.9
- laravel/pint: ^1.13
- nunomaduro/collision: ^7.10|^8.0
- orchestra/testbench: ^v8.22|^9.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.3
- phpunit/phpunit: ^10.4.1
This package is auto-updated.
Last update: 2024-12-05 19:19:46 UTC
README
Provides an interface to the Azure Graph API.
Warning
This package is still in development and is not ready for production use.
It currently only supports delegated authentication via a user supplied token.
The only call supported is to fetch a user's groups via the memberOf
endpoint.
Installation
You can install the package via composer:
composer require chrisreedio/laravel-azure-graph
Usage
This sample shows how to get all of a user's groups via a delegated call to the memberOf
endpoint.
$graph = new GraphConnector('user-token'); $paginator = $graph->paginate(new MemberOfRequest()); $adGroups = $paginator->collect(); // Dump the user's groups dd($adGroups->pluck('displayName')->all());
Config
You can publish the config file with:
php artisan vendor:publish --tag="laravel-azure-graph-config"
This is the contents of the published config file:
return [ 'pagination' => [ 'limit' => 100, ], ];
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.