Download the PHP package tomshaw/mediable without Composer

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

Mediable πŸŽ₯πŸ“ΈπŸŽ΅πŸ“‚

Mediable is a light weight easy to use Laravel Livewire Media Manager. Mediable is awesome for injecting content into blog posts, carousels, product previews or similar applications.

GitHub Workflow Status issues forks stars GitHub license

For a complete demonstration see the Mediable Demo repository.

Screenshot

Mediable

Features

Installation

You can install the package via composer:

Mediable comes with both install and update commands.

Run the included database migration.

This creates an attachments table that stores upload information.

Add Mediable styles and scripts directives to your layout.

Make sure your .env APP_URL is correctly set.

Finally make uploaded files accessible from the web.

Usage

Add the Mediable component to your blade template.

Boolean options can be provided by only specifying the key.

Launching Mediable is done by dispatching the mediable.open event.

This is typically executed with a button click.

Insert attachments directly into form inputs using PHP 8 named parameters.

This example launches the modal with the intention of injecting attachments directly into an html input that has an id of description.

Use the mediable.on event to handle selected attachments.

Validation

You can customize allowable file types and max file size in the mediable.php config file.

The mimes rule specifies the allowable file types. To add a new file type, simply add its mime type to the list. For example, to allow SVG files, you would change it to:

The max rule specifies the maximum file size, in kilobytes. To change the maximum file size, simply change the number. For example, to allow files up to 50MB, you would change it to:

Storage Disk

You can configure the storage disk used for file uploads in the mediable.php config file. The disk option is used to specify the disk name:

The value of disk is the key of disks in your Laravel application's config/filesystems.php file. By default, it uses the disk specified by the FILESYSTEM_DRIVER environment variable, or 'public' if the environment variable is not set.

You can change the disk option to use a different disk for file uploads. For example, to use the 's3' disk, you can set disk to 's3':

Remember to configure the chosen disk correctly in your config/filesystems.php file and to clear your config cache after making changes by running php artisan config:clear in your terminal.

Disk Folder

You can configure the folder used for file uploads on the specified disk. This configuration allows you to organize and manage and your uploaded files.

GD Library Graphic Draw

Mediable includes a set of tools for performing various image manipulations using the GD Library. Here are some of the things you can do:

Image Conversion Settings

Mediable can automatically create WebP and AVIF versions of your image uploads. You can control this behavior with the following environment variables:

You can also control the quality of the WebP and AVIF versions with the following environment variables:

Here's an example of how you might set these environment variables in your .env file:

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). See License File for more information.


All versions of mediable with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.3|^8.4
laravel/framework Version ^11.0
illuminate/console Version ^11.0
illuminate/contracts Version ^11.0
illuminate/support Version ^11.0
livewire/livewire Version ^3.4
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 tomshaw/mediable contains the following files

Loading the files please wait ....