djordje / li3_filemanager
File management (file browser) for Lithium PHP framework
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 4
Forks: 0
Open Issues: 0
Type:lithium-library
Requires
- php: >=5.3
- composer/installers: dev-master
This package is not auto-updated.
Last update: 2024-12-21 15:13:48 UTC
README
[] (http://stillmaintained.com/djordje/li3_filemanager)
File manager plugin for the Lithium framework
Instalation
Checkout the code to either of your library directories:
cd libraries
git clone git://github.com/djordje/li3_filemanager.git
Include the library in yor /app/config/bootstrap/libraries.php
Libraries::add('li3_filemanager');
Require session.php
in your app bootstrap file
Dependencies
Your application shoud have:
jQuery, Twitter Bootstrap (CSS and JS)
For building JS (li3_filemanager.min.js) you need:
node with this modules: grunt, uglify-js, jshint
Usage
Go to your application URL /fm
By default you are browsing app/webroot/img
Add location
Filesystem:
Location::add('default', array(
'adapter' => 'FileSystem',
'location' => LITHIUM_APP_PATH.'/webroot/files'
));
Filesystem with file URL:
Location::add('default', array(
'adapter' => 'Filesystem',
'location' => LITHIUM_APP_PATH.'/webroot/files'
'url' => 'http://example.com/files/'
));
FTP:
Locations::add('default', array(
'adapter' => 'FTP',
'host' => 'ftp.yourdomain.com',
'username' => 'username@yourdomain.com',
'password' => 'yourPassword'
));
Testing
FileSystem adapter have location setup for testing
FTP adapter can be tested if you add FTP location config