Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arcphysx/laradrive
Google Drive REST API Wrapper For Laravel and Lumen
https://github.com/arcphysx/laradrive
Last synced: about 2 months ago
JSON representation
Google Drive REST API Wrapper For Laravel and Lumen
- Host: GitHub
- URL: https://github.com/arcphysx/laradrive
- Owner: arcphysx
- License: mit
- Created: 2021-02-02T07:35:50.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-02T03:37:47.000Z (over 3 years ago)
- Last Synced: 2024-11-12T23:35:42.505Z (2 months ago)
- Language: PHP
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laradrive
Google Drive REST API Wrapper For Laravel and Lumen## Installation
You can install the package using composer
```sh
$ 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.```php
'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=""
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:
```sh
$ 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:
```sh
$ composer dump-autoload
```