Download the PHP package dcblogdev/laravel-box without Composer

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

Community

There is a Discord community. https://discord.gg/VYau8hgwrm For quick help, ask questions in the appropriate channel.

Latest Version on Packagist Total Downloads

Logo

A Laravel package for working with box API.

Box API documentation can be found at: https://developer.box.com/

Application Register

To use Box API an application needs creating at https://app.box.com/developers/console/newapp

Select the type of application. Select custom if you need to access the API abilities.

Select the Oauth2 app type after selecting custom.

Install

Via Composer

Config

You can publish the config file with:

When published, the config/box.php config file contains:

Migration

You can publish the migration with:

After the migration has been published you can create the tokens tables by running the migration:

.ENV Configuration

You should add the env variables to your .env file, this allows you to use a different box application on different servers, each box application requires a unique callback URL.

The following are required when using OAuth 2.0 credentials:

The BOX_REDIRECT_URI is where Box should redirect to for authentication with Box, upon successful authentication the BOX_LANDING_URI is used to direct a user to the desired page. > Note BOX_REDIRECT_URI needs to be the full URI ie https://domain.com/box/

Usage

Import Namespace

A routes example:

Calls can be made by referencing Box:: then the verb get,post,put,patch or delete followed by the end point to call. An array can be passed as a second option.

The end points are relative paths after https://api.box.com/2.0/

Example GET request

Example POST request

The formula is:

Working with Files

This package provides a clean way of working with files.

To work with files first call ->files() followed by a method.

Get file Accepts a file id, returns an array.

Download file Accepts a file id Optionally a path can be used when $storeDownload is set to true. To download the file only an id is required.

Upload file Accepts a file path and filename. Optionally specificy the parent, defaults to 0 when ommited.

Upload revision Accepts the file id, file path and filename. Optionally specificy a new name.

Delete file Accepts a file id, returns no output.

Change log

Please see the changelog for more information on what has changed recently.

Contributing

Contributions are welcome and will be fully credited.

Contributions are accepted via Pull Requests on Github.

Pull Requests

Security

If you discover any security related issues, please email [email protected] email instead of using the issue tracker.

License

license. Please see the license file for more information.


All versions of laravel-box with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version 10.x|11.x
guzzlehttp/guzzle Version 7.x
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 dcblogdev/laravel-box contains the following files

Loading the files please wait ....