kaswell/laravel-boxapi

BoxAPI for Laravel

1.0.0 2021-06-04 09:10 UTC

This package is auto-updated.

Last update: 2024-05-08 14:16:21 UTC


README

Social Card of Laravel BoxApi

License Total size Last Version

BoxAPI for Laravel

Library for use Box API for Laravel Framework (with JWT authenticate). Box API documentation You'll find on Box API Reference

Documentation

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.

Installation

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"

Basic Usage

You can use class:

use Kaswell\BoxApi\BoxApi;
$response = app(BoxApi::class)->getFolderInfo();

or use facade:

use Kaswell\BoxApi\Facades\BoxApi;
$response = BoxApi::getFolderInfo();

Changelog

Please see changelog for more information about recent changes.

Credits

Special thanks to everyone for all the work that was done in v1.

License

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