Download the PHP package itskodinger/midia without Composer

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

Midia

Simple media manager for your Laravel project. This package lets you open your files as inline modal. All directories in the folder will be ignored. In other words, can only read the file.

midia

Features

Todo List

Requirements

Tested

Installation

Now, this package is available for production. You can install this package using these steps.

  1. Install through Composer

If you're using Laravel 5.6 you can skip this step, since it will be auto discovered by Laravel.

  1. Put this line into config/app.php in the providers key

  2. Done!

Usage

  1. Publish required assets.

  2. Put this code in the <head> tag

  3. Add these lines before the </head> tag

  4. Make sure you've included jQuery before and put these lines after jQuery

Note: Default, all files that are read and uploaded will be stored in the storage/media folder, so create a folder named media in the storage folder if you have not already created it or you can change the location of the folders you want in config/midia.php.

Integration

Here we have documented how to use it with TinyMCE 4 and as a stand-alone button. But, you can also try it yourself to be integrated with other editors like: CKEditor, Summernote, etc.

If you successfully integrate with other editors, then you can either create issue or change the readme.md file to document how you do it.

TinyMCE 4

Summernote

Standalone Button

Popup

Inline

Multiple Instance With Different Directories

You can also use the configuration in .midia(). The following is the default configuration:

or you can use data-attributes to change the settings, use data-midia followed by your setting attributes, i.e. data-midia-your_setting_want_to_change:

Override Default Settings

You can override default settings for all instances by add following code before creating instance:

Setter

You can also change to settings on the fly but you have to refresh after that:

Getter

You can get the the value from this following Midia Attributes:

with this way:

Methods

Midia has this following methods:

with this way:

Open The File

To open a file in the browser, you can do it easily like this:

For example:

Note: You can change the media prefix in the config/midia.php file

Resize Image On The Fly

You can quickly resize an image, set the width parameters to the size you want (in pixels) and set the height parameters to the size you want. If the width parameter is not set, it will be set equal to the height parameter and If the height parameter is not set, it will be set equal to the width parameter.

Note: Resizing an image over its original size may make the image blurry

Configuration

You can change the default configuration in the config/midia.php file.

Authors

This package was first initialized by @nauvalazhar and maintained by @itskodinger. Then, it became extraordinary by all contributors: @rizalfakhri12 @mrofi @captainspain @zeroseed @tpaksu

License

MIT License


All versions of midia with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
intervention/image Version 2.*
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 itskodinger/midia contains the following files

Loading the files please wait ....