Download the PHP package rps/dropbox-sdk without Composer

On this page you can find all versions of the php package rps/dropbox-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package dropbox-sdk

Dropbox SDK for TYPO3 Flow 2.2+

A PHP library to access Dropbox's HTTP-based API.

License: MIT

Requirements:

SDK API docs.

Setup

If you're using Composer for your project's dependencies, add the following to your "composer.json":

If you're not using Composer, download the code, copy the "lib/" folder into your project somewhere, and include the "lib/Dropbox/autoload.php" in your code. For example, if you copied the "lib/" and named it "dropbox-sdk/", you would do:

IMPORTANT: Many PHP installations have an insecure SSL implementation. To check if your PHP installation is insecure, run the included "examples/test-ssl.php" script, either on the command line or via your web server.

Get a Dropbox API key

You need a Dropbox API key to make API requests.

Save the API key to a JSON file called, say, "test.app":

Using the Dropbox API

Before your app can access a Dropbox user's files, the user must authorize your application using OAuth 2. Successfully completing this authorization flow gives you an access token for the user's Dropbox account, which grants you the ability to make Dropbox API calls to access their files.

Once you have an access token, create a Client and start making API calls.

You only need to perform the authorization process once per user. Once you have an access token for a user, save it somewhere persistent, like in a database. The next time that user visits your app, you can skip the authorization process and go straight to making API calls.

Running the Examples and Tests

  1. Download this repository.
  2. Save your Dropbox API key in a file called "test.app". See: Get a Dropbox API key, above.

authorize.php

This example runs through the OAuth 2 authorization flow.

This produces a file named "test.auth" that has the access token. This file can passed in to the other examples.

account-info.php

A trivial example that calls the /account/info API endpoint.

(You must first generate "test.auth" using the "authorize" example above.)

web-file-browser.php

A tiny web app that runs through the OAuth 2 authorization flow and then uses Dropbox API calls to let the user browse their Dropbox files.

Required: copy one of the ".app" files you created previously to "examples/web-file-browser.app".

Using PHP built-in web server (PHP 5.4+).

  1. Go to the Dropbox API app console, go to the API app you configured in "web-file-browser.app", go to the OAuth redirect URIs section, and add "http://localhost:5000/dropbox-auth-finish".
  2. Run "php web-file-browser.php".
  3. Point your browser at "http://localhost:5000/".

Using an existing web server setup.

  1. Copy the entire SDK folder to your web server's document path. For example, let's say the script is accessible at "http://localhost/~scooby/dropbox/examples/web-file-browser.php".
  2. Go to the Dropbox API app console, go to the API app you configured in "web-file-browser.app", go to the OAuth redirect URIs section, and add "http://localhost/~scooby/dropbox/examples/web-file-browser.php/dropbox-auth-finish".
  3. Point your browser at "http://localhost/~scooby/dropbox/examples/web-file-browser.php".

Running the Tests

  1. run: composer install --dev to download the dependencies. (You'll need Composer.)
  2. Put an "auth info" file in "test/test.auth". (You can generate "test/test.auth" using the "authorize.php" example script.)

All versions of dropbox-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >= 5.3
ext-curl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rps/dropbox-sdk contains the following files

Loading the files please wait ....