Download the PHP package mdixon18/laravel-medialibrary without Composer

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

Associate files with Eloquent models

Latest Version Build Status Quality Score StyleCI Total Downloads

This package can associate all sorts of files with Eloquent models. It provides a simple API to work with. To learn all about it, head over to the extensive documentation.

Forked from spatie/media-library

I needed the use of pull request #1443 until it is merged in (if it will be). All work on this has been done by Spatie and by @jlmmns for the PR.

Here are a few short examples of what you can do:

It can handle your uploads directly:

Want to store some large files on another filesystem? No problem:

The storage of the files is handled by Laravel's Filesystem, so you can use any filesystem you like. Additionally the package can create image manipulations on images and pdfs that have been added in the medialibrary.

Spatie is a webdesign agency in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

Using an older version of Laravel?

This version of the medialibrary is compatible with Laravel 5.5 and newer.

If you use an older version of Laravel you can use an older version of the package. These aren't maintained anymore, but they should be pretty stable. We still accept small bugfixes.

Documentation

You'll find the documentation on https://docs.spatie.be/laravel-medialibrary/v7.

Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the media library? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.

If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.

Requirements

To create derived images GD should be installed on your server. For the creation of thumbnails of svg's or pdf's you should also install Imagick.

Installation

You can install this package via composer using this command:

The package will automatically register itself.

You can publish the migration with:

After the migration has been published you can create the media-table by running the migrations:

You can publish the config-file with:

This is the contents of the published config file:

By default medialibrary will store it's files on Laravel's public disk. If you want a dedicated disk you should add a disk to app/config/filesystems.php. This would be a typical configuration:

All files of the medialibrary will be stored on that disk. If you are planning on working with the image manipulations you should configure a queue on your service with the name specified in the config file.

Lumen Support

Lumen configuration is slightly more involved but features and API are identical to Laravel.

Install using this command:

Uncomment the following lines in the bootstrap file:

Configure the laravel-medialibrary service provider (and AppServiceProvider if not already enabled):

Update the AppServiceProvider register method to bind the filesystem manager to the IOC container:

Manually copy the package config file to app\config\laravel-medialibrary.php (you may need to create the config directory if it does not already exist).

Copy the Laravel filesystem config file into app\config\filesystem.php. You should add a disk configuration to the filesystem config matching the default_filesystem specified in the laravel-medialibrary config file.

Finally, update boostrap/app.php to load both config files:

Testing

You can run the tests with:

Upgrading

Please see UPGRADING for details.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

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

Postcardware

You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium.

We publish all received postcards on our company website.

Credits

A big thank you to Nicolas Beauvais for helping out with the issues on this repo.

Alternatives

Support us

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

Does your business depend on our contributions? Reach out and support us on Patreon. All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-medialibrary with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
illuminate/bus Version ~5.5.0|~5.6.0|~5.7.0|~5.8.0
illuminate/console Version ~5.5.0|~5.6.0|~5.7.0|~5.8.0
illuminate/database Version ~5.5.0|~5.6.0|~5.7.0|~5.8.0
illuminate/pipeline Version ~5.5.0|~5.6.0|~5.7.0|~5.8.0
illuminate/support Version ~5.5.0|~5.6.0|~5.7.0|~5.8.0
league/flysystem Version ^1.0.8
maennchen/zipstream-php Version ~0.4
spatie/image Version ^1.4.0
spatie/pdf-to-image Version ^1.2
spatie/temporary-directory Version ^1.1
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 mdixon18/laravel-medialibrary contains the following files

Loading the files please wait ....