Download the PHP package codrasil/mediabox without Composer

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



About Mediabox

Mediabox is a PHP implementation of a web-based file management system. The library makes it easy to interact with the local disk storage's files and folders.

Features include:

Mediabox is also a Laravel package out-of-the-box with minimal setup.


Demonstration

Clone or download this repository then run the demo:plain composer script:

The above command will run a built-in PHP server at localhost:8080.

You may also run composer demo:prep to generate dummy files and folders for the demo.



Requirements


Installation

The library can be installed via composer:


Publishing Configuration

If used in a Laravel project, the configuration file can be published via artisan command:

See docs/Laravel for instructions on how to setup in a Laravel project.


Usage

Plain PHP
Laravel

If using within a Laravel project, just inject the Codrasil\Mediabox\Mediabox class to a controller or another class.

Note by default, the library will list the files and folders listed in storage/app/public/media. To change the path, update the root_path value in config/mediabox.php file.

All the necessary setup is taken cared of by the Codrasil\Mediabox\MediaboxServiceProvider class.

See config/mediabox.php to view all available customization options.

See also docs/Laravel for more information on how to use the library on a Laravel project.


Adding

Adding folders is recursive by default.


Copying

The copy method accepts the relative path of the file to be copied as first argument. The second argument is the new file name.


Moving or renaming

The rename and move methods accept a $path and $target destination.


Deleting

The delete method can accept a path or array of paths.


Displaying & Downloading

To display a file on a browser, use the stream or fetch method.

To force browser to download the file, use the download method.

Both methods will return an instance of Symfony\Component\HttpFoundation\BinaryFileResponse.


Documentation & Examples

To learn more about the API, see the docs folder.

For more example implementation, checkout docs/examples folder.

For instructions on how to use in a Laravel project, see docs/Laravel.

For instructions on how to use in a Laravel + VueJS project, see docs/VueJS.


License

The library is open-source software licensed under the MIT license.


All versions of mediabox with dependencies

PHP Build Version
Package Version
Requires illuminate/filesystem Version ^7.11
symfony/http-foundation Version ^5.0
illuminate/cache Version ^7.15
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 codrasil/mediabox contains the following files

Loading the files please wait ....