arcphysx/laradrive

Google Drive REST API Wrapper For Laravel and Lumen
129 1
Install
composer require arcphysx/laradrive
Latest Version:v1.0.5
PHP:^7.2
Laravel:6 · 7 · 8
License:MIT
Last Updated:Sep 2, 2021
Links: GitHub  ·  Packagist
Maintainer: arcphysx

Laradrive

Google Drive REST API Wrapper For Laravel and Lumen

Installation

You can install the package using composer

$ composer require arcphysx/laradrive

Then add the service provider to config/app.php. In Laravel versions 5.5 and beyond, this step can be skipped if package auto-discovery is enabled.

'providers' => [
    ...
    Arcphysx\Laradrive\Providers\LaradriveServiceProvider::class
    ...
];

Run php artisan laradrive:install to run first setup

Then add some required value on your .env file

GOOGLE_DRIVE_API_KEY="<your-google-api-key-here>"
GOOGLE_DRIVE_AUTH_TOKEN_STORAGE_PATH="app/google_auth_token.json"
GOOGLE_DRIVE_CREDENTIAL_STORAGE_PATH="credentials.json"

By default, laradrive will use your storage to store your Google Authentication Info

You can publish the configuration file and assets by running:

$ php artisan vendor:publish --provider="Arcphysx\Laradrive\Providers\LaradriveServiceProvider"

After publishing a few new files to our application we need to reload them with the following command:

$ composer dump-autoload

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

418,291,778 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660

Version History

Version Released PHP Laravel License
v1.0.5 ^7.2 >=6.0 MIT
v1.0.4 ^7.2 >=6.0 MIT
v1.0.3 ^7.2 >=6.0 ^8.0 MIT
v1.0.2 ^7.2 >=6.0 ^8.0 MIT
v1.0.1 ^7.2 ^6.0|^7.0 MIT