Package Data | |
---|---|
Maintainer Username: | naturalweb |
Package Create Date: | 2014-06-14 |
Package Last Update: | 2014-09-27 |
Home Page: | http://naturalweb.github.io/NwLaravel-Dropbox |
Language: | PHP |
License: | BSD-3-Clause |
Last Refreshed: | 2024-11-19 03:13:29 |
Package Statistics | |
---|---|
Total Downloads: | 359 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 3 |
Total Forks: | 2 |
Total Open Issues: | 0 |
This is a service provider for the Laravel PHP Framework, for usage client the of sdk-dropbox. Core API
mbstring.func_overload
to overload PHP's standard string functions.In the require
key of composer.json
file add the following
"naturalweb/nwlaravel-dropbox": "~0.1"
Run the Composer update comand
$ composer update
In your config/app.php
add 'NwLaravel\Dropbox\DropboxServiceProvider'
to the end of the $providers
array
'providers' => array(
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
'Illuminate\Auth\AuthServiceProvider',
...
'NwLaravel\Dropbox\DropboxServiceProvider',
),
At the end of config/app.php
add 'Dropbox' => 'NwLaravel\Dropbox\DropboxFacade'
to the $aliases
array
'aliases' => array(
'App' => 'Illuminate\Support\Facades\App',
'Artisan' => 'Illuminate\Support\Facades\Artisan',
...
'Dropbox' => 'NwLaravel\Dropbox\DropboxFacade',
),
Publish config using artisan CLI.
php artisan config:publish naturalweb/nwlaravel-dropbox
The configuration to app/config/packages/naturalweb/nwlaravel-dropbox/config/dropbox.php
. This file will look somewhat like:
<?php
/*
|--------------------------------------------------------------------------
| Configuration Dropbox
|--------------------------------------------------------------------------
*/
return array(
'token' => 'your-token',
'app' => 'your-app',
);
Dropbox::getAccountInfo();