Download the PHP package sebastienheyd/boilerplate-media-manager without Composer

On this page you can find all versions of the php package sebastienheyd/boilerplate-media-manager. 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 boilerplate-media-manager

Laravel Media Manager for sebastienheyd/boilerplate

Packagist StyleCI Scrutinizer Code Quality Laravel Nb downloads

This package adds a media management tool to sebastienheyd/boilerplate

Installation

  1. In order to install Laravel Boilerplate Media Manager run :

  2. Run the command below to publish assets and configuration file

  3. Run the migration to add permissions

  4. Create the symbolic link from public/storage to storage/app/public

Configuration

After vendor:publish, you can find the configuration file mediamanager.php in the app/config/boilerplate folder

configuration description
mediamanager.base_url Relative path to the public storage folder
mediamanager.tinymce_upload_dir Directory where TinyMCE will store his edited image
mediamanager.thumbs_dir Directory where to store dynamically generated thumbs
mediamanager.authorized.size Upload max size in bytes, default is 2048
mediamanager.authorized.mimes Mime types by extension, see Laravel documentation
mediamanager.filetypes Associative array to get file type by extension
mediamanager.icons Associative array to get icon class (Fontawesome) by file type
mediamanager.filter Array of filtered files to hide

Backend

TinyMCE

This media manager will be automatically used for images and files inclusion by the TinyMCE Blade component included with the sebastienheyd/boilerplate package.

Image selector

You can use the <x-boilerplate-media-manager::image> component to easily insert an image selector into your forms. This component allows you to use the media manager to select an image to use.

Parameters are :

name description default
name Input name (required) ""
value Default input value ""
label Label of the input field ""
width Width of the selector 300
height Height of the selector 200
help Help text ""
group-class Additional class to form-group ""
group-id Form-group ID ""

File selector

You can use the <x-boilerplate-media-manager::file> component to easily insert a file selector into your forms. This component allows you to use the media manager to select a file to assign to the input field.

Parameters are :

name description default
name Input name (required) ""
value Input value ""
label Label of the input field ""
type Media list filter (all, file, image, video) all
help Help text ""
group-class Additional class to form-group ""
group-id Form-group ID ""

Frontend

Img (fit or resize)

img will dynamically resize an image and returns the URL using Intervention and Storage (public disk)

will return

Or using the @img Blade directive :

will return

You can already get only the url by using img_url helper function.

Clear cache

You can clear all resized image by using the artisan command thumbs:clear

Language

You can translate or change translations by running php artisan vendor:publish --tag=boilerplate-media-manager-lang. After running this command, you will find translations folders into resources/lang/vendor/boilerplate-media-manager. Copy one of the language folders in the new language you want to create and all you have to do is to translate. If you want to share the language you have added, don't hesitate to make a pull request.

Views

You can override views by running php artisan vendor:publish --tag=boilerplate-media-manager-views. You will then find the views in the resources/views/vendor/boilerplate-media-manager folder.

Package update (Laravel < 8.6.9)

Laravel Boilerplate Media Manager comes with assets such as Javascript, CSS, and images. Since you typically will need to overwrite the assets every time the package is updated, you may use the flag :

To auto update assets each time package is updated, you can add this command to post-autoload-dump into the file composer.json at the root of your project.


All versions of boilerplate-media-manager with dependencies

PHP Build Version
Package Version
Requires intervention/image Version ^2.4
sebastienheyd/boilerplate Version ^7.5|*@dev
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 sebastienheyd/boilerplate-media-manager contains the following files

Loading the files please wait ....