Download the PHP package chancegarcia/php-box-sdk without Composer

On this page you can find all versions of the php package chancegarcia/php-box-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 php-box-sdk

Box PHP SDK

CI Latest Stable Version PHP Version Require License Total Downloads

A modern PHP SDK for interacting with the Box.com API.

Status: v1.0.0 released.

This library is designed as a boundary layer for Box API access, suitable for standalone use or integration into frameworks like Symfony.

Requirements

Installation

Quickstart

OAuth2 Workflow

The recommended setup uses BoxClientFactory with an EnvConfigProvider, which reads credentials from environment variables (BOX_OAUTH_CLIENT_ID, BOX_OAUTH_CLIENT_SECRET, etc.):

Generate the authorization URL and redirect the user:

After the user authorizes and is redirected back with a code, exchange it for a token:

JWT / Server-to-Server

For server-to-server integrations (no browser redirect needed), set BOX_AUTH_MODE=jwt and the BOX_JWT_* environment variables, then:

See the Programmatic Usage Guide for enterprise and app-user token exchange examples.

File and Folder Operations

Advanced Documentation

For in-depth architectural guidance, library integration patterns, and advanced usage:

Development and Quality Checks


See also:

License

Apache 2.0 License. See LICENSE for details.

This project was previously distributed under the MIT License. As of v1.0.0 it is relicensed under Apache 2.0.


All versions of php-box-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
psr/log Version ^3
psr/event-dispatcher Version ^1.0
ext-fileinfo Version *
ext-openssl Version *
ext-pdo Version *
symfony/dotenv Version ^7.4|^8
symfony/console Version ^7.4|^8
monolog/monolog Version ^3.0
guzzlehttp/guzzle Version ^7.0
psr/http-message Version ^2.0
guzzlehttp/psr7 Version ^2.0
doctrine/collections Version ^2.2
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 chancegarcia/php-box-sdk contains the following files

Loading the files please wait ...