2017 © Pedro Peláez
 

library laravel-media-manager

Laravel 4 advanced media manager based on elFinder 2.1.

image

ahmadazimi/laravel-media-manager

Laravel 4 advanced media manager based on elFinder 2.1.

  • Thursday, June 28, 2012
  • by ahmadazimi
  • Repository
  • 1 Watchers
  • 10 Stars
  • 471 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel Media Manager 0.1.0 beta

This package is still under development.

Laravel 4 advanced media manager (file manager and uploader) package based on elFinder 2.1. Inspired by laravel-elfinder package developed by Barry vd. Heuvel. Note that this package is still under development. You can use this file manager in Laravel 4 as a standalone media manager or as a plugin for TinyMCE or CKEditor. For more info take a look at files in src/views folder., (*1)

Installation

First of all you should add laravel-media-manager package to your composer.json file using this line:, (*2)

"ahmadazimi/laravel-media-manager": "dev-master",

Add the MediaManagerServiceProvider to your application providers by adding this line to providers array in app/config/app.php:, (*3)

'W3G\MediaManager\MediaManagerServiceProvider',

To copy the Media Manager assets to the public folder, using the following artisan command:, (*4)

php artisan mediamanager:publish

Also remember to publish the assets after each update (or add the command to your post-update-cmd in composer.json), (*5)

You can now add the routes for elFinder to your routes.php, (*6)

Route::group(array('before' => 'auth'), function()
    {
        \Route::get('media', 'W3G\MediaManager\MediaManagerController@showStandalone');
        \Route::any('media/connector', 'W3G\MediaManager\MediaManagerController@connector');
    });

Of course you can define your own filters/routes if you want., (*7)

Configuration

The default configuration requires a directory called 'media' in the public folder. You can change this by publishing the config file., (*8)

php artisan config:publish ahmadazimi/laravel-media-manager

In your app/config/packages/ahmadazimi/laravel-media-manager, you can change the default folder, the access callback or define your own roots and also some extra parameters for elFinder., (*9)

The Versions

28/06 2012

dev-master

9999999-dev https://github.com/ahmadazimi/laravel-media-manager

Laravel 4 advanced media manager based on elFinder 2.1.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel uploader elfinder file-manager media-manager