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.
Download chancegarcia/php-box-sdk
More information about chancegarcia/php-box-sdk
Files in chancegarcia/php-box-sdk
Package php-box-sdk
Short Description PHP SDK and API client for the Box API v2024.0, supporting OAuth2 and JWT/S2S authentication, file and folder operations, uploads, webhook signature verification, typed models, and PSR-3 logging.
License Apache-2.0
Homepage https://github.com/chancegarcia/php-box-sdk
Informations about the package php-box-sdk
Box PHP SDK
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
- PHP 8.4 or higher
ext-fileinfo
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:
- Programmatic Usage Guide — OAuth2, JWT/S2S, token storage, error handling, file streaming
- CLI Test Harness Guide —
bin/box-sdkcommands for manual verification - v1.0 Migration Guide — upgrading from v0.11
Development and Quality Checks
See also:
- Changelog
- Documentation Index
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
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