naturalweb / nwlaravel-dropbox
Dropbox SDK Service Provider for the Laravel PHP Framework
v0.1
2014-06-14 15:27 UTC
Requires
- php: >=5.3.0
- dropbox/dropbox-sdk: 1.1.*
- laravel/framework: ~4.1
Requires (Dev)
- mockery/mockery: 0.7.2
- phpunit/phpunit: 4.0.*
- satooshi/php-coveralls: dev-master
Suggests
- naturalweb/nwsilex: >=0.1
This package is not auto-updated.
Last update: 2026-03-10 08:24:00 UTC
README
This is a service provider for the Laravel PHP Framework, for usage client the of sdk-dropbox. Core API
Requirements:
- PHP 5.3+, with 64-bit integers
- PHP cURL extension with SSL enabled (it's usually built-in).
- Must not be using
mbstring.func_overloadto overload PHP's standard string functions.
Installation
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', ),
Configuration
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', );
Usage
Dropbox::getAccountInfo();