Library for use Box API for Laravel Framework (with JWT authenticate). Box API documentation You'll find on Box API Reference
You'll find the documentation on https://docs.nonium.by/laravel-boxapi.
Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the library? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.
You can install the package via composer:
composer require kaswell/laravel-boxapi
The package will automatically register itself.
Download from Box Developers config json file and save into /storage/app/box_app_config.json
and add into env file next optional constants
BOX_APP_DEV_MODE=false
BOX_APP_CONFIG_FILE="box_app_config.json"
BOX_APP_DEV_TOKEN=""
BOX_APP_USER_ID=""
BOX_APP_USER_LOGIN=""
or You can optionally publish the config file with:
php artisan vendor:publish --provider="Kaswell\BoxApi\BoxApiServiceProvider" --tag="config"
You can use class:
use Kaswell\BoxApi\BoxApi;
$response = app(BoxApi::class)->getFolderInfo();
or use facade:
use Kaswell\BoxApi\Facades\BoxApi;
$response = BoxApi::getFolderInfo();
Please see changelog for more information about recent changes.
Special thanks to everyone for all the work that was done in v1
.
The MIT License (MIT). Please see License File for more information.