Install File Manager for PHP
In order to get upload & file management features in your TinyMCE or CKEditor add-ons, please install server side for Flmngr file manager which goes as a part of N1ED, Flmngr or ImgPen.
Classic PHP installation
If you want to install Flmngr without using Composer to include it to the project, simply download the latest version of PHP version of Flmngr, then unpack it to some folder on the the website and set
urlFiles according to server files location.
This way is only recommended for CMS that do not work with Composer. Otherwise we recommend using the modern way to install the package.
Installing using Composer
To install File Manager for PHP in modern way, you need to download the Composer-module edsdk/flmngr-server-php for it and link it to your current project or website.
To install the package, use this console command:
composer require edsdk/flmngr-server-php
After that, in your code that processes the request to the URL you pass to File Manager, make the following call:
FlmngrServer::flmngrRequest( array( 'dirFiles' => '/var/www/files', 'dirCache' => '/var/www/files/cache', 'dirTmp' => '/var/www/files/tmp' ) );
You can learn more about installing the package on the Flmngr for PHP module page.