承接 naturalweb/nwlaravel-dropbox 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

naturalweb/nwlaravel-dropbox

Composer 安装命令:

composer require naturalweb/nwlaravel-dropbox

包简介

Dropbox SDK Service Provider for the Laravel PHP Framework

README 文档

README

Build Status Coverage Status Scrutinizer Code Quality SensioLabsInsight

This is a service provider for the Laravel PHP Framework, for usage client the of sdk-dropbox. Core API

Requirements:

SDK API docs.

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();

统计信息

  • 总下载量: 359
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-06-14