All Projects β†’ digiaonline β†’ lumen-file-manager

digiaonline / lumen-file-manager

Licence: MIT license
File manager module for the Lumen PHP framework.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to lumen-file-manager

Chibisafe
Blazing fast file uploader and awesome bunker written in node! πŸš€
Stars: ✭ 657 (+1542.5%)
Mutual labels:  files, file
Github Files Fetcher
Download a specific folder or file from a GitHub repo through command line
Stars: ✭ 73 (+82.5%)
Mutual labels:  files, file
Aetherupload Laravel
A Laravel package to upload large files δΈŠδΌ ε€§ζ–‡δ»Άηš„Laravelζ‰©ε±•εŒ…
Stars: ✭ 835 (+1987.5%)
Mutual labels:  files, file
Pomf
Simple file uploading and sharing
Stars: ✭ 535 (+1237.5%)
Mutual labels:  files, file
Copy Webpack Plugin
Copy files and directories with webpack
Stars: ✭ 2,679 (+6597.5%)
Mutual labels:  files, file
Filemasta
A search application to explore, discover and share online files
Stars: ✭ 571 (+1327.5%)
Mutual labels:  files, file
Date2name
Handling time-stamps and date-stamps in file names
Stars: ✭ 37 (-7.5%)
Mutual labels:  files, file
replace-in-files
Replace text in one or more files or globs.
Stars: ✭ 21 (-47.5%)
Mutual labels:  files, file
Uploadcare Widget
Uploadcare Widget, an ultimate tool for HTML5 file upload supporting multiple file upload, drag&drop, validation by file size/file extension/MIME file type, progress bar for file uploads, image preview.
Stars: ✭ 183 (+357.5%)
Mutual labels:  files, file
React Files
A file input (dropzone) management component for React
Stars: ✭ 126 (+215%)
Mutual labels:  files, file
Chonky
😸 A File Browser component for React.
Stars: ✭ 313 (+682.5%)
Mutual labels:  files, file
PHP-FileUpload
Simple and convenient file uploads β€” secure by default
Stars: ✭ 53 (+32.5%)
Mutual labels:  files, file
github-content
Easily download files from github raw user content.
Stars: ✭ 21 (-47.5%)
Mutual labels:  files, file
Filegator
Powerful Multi-User File Manager
Stars: ✭ 587 (+1367.5%)
Mutual labels:  files, file
guess-filename.py
Derive a file name according to old file name cues and/or PDF file content
Stars: ✭ 27 (-32.5%)
Mutual labels:  files, file
Fcfilemanager
iOS File Manager on top of NSFileManager for simplifying files management. πŸ“‚
Stars: ✭ 862 (+2055%)
Mutual labels:  files, file
Voila
Voila is a domain-specific language launched through CLI tool for operating with files and directories in massive amounts in a fast & reliable way.
Stars: ✭ 78 (+95%)
Mutual labels:  files, file
files
Useful methods to manage files and directories
Stars: ✭ 27 (-32.5%)
Mutual labels:  files, file
File Storage
File storage abstraction for Yii2
Stars: ✭ 116 (+190%)
Mutual labels:  files, file
Com2Kube
Web application that convert docker-compose files to kubernetes files
Stars: ✭ 26 (-35%)
Mutual labels:  files, file

Lumen File Manager

Code Climate Scrutinizer Code Quality StyleCI Latest Stable Version Total Downloads License

File manager module for the Lumen PHP framework.

Please note that this module is still under active development.

NOTE: Branch 5.1 is for using Lumen Framework 5.1 and 5.2. Only bug fixes for 1.1.X should be tagged here.

Requirements

Usage

Installation

Run the following command to install the package through Composer:

composer require nordsoftware/lumen-file-manager

Bootstrapping

Please note that we only support Doctrine for now, but we plan to add Eloquent support soon.

Add the following lines to bootstrap/app.php:

$app->register('Nord\Lumen\FileManager\Doctrine\ORM\DoctrineServiceProvider'); // For ORM
// $app->register('Nord\Lumen\FileManager\Doctrine\ODM\DoctrineServiceProvider'); // For ODM
$app->register('Nord\Lumen\FileManager\FileManagerServiceProvider');

Add base_path('vendor/nordsoftware/lumen-file-manager/src/Doctrine/ORM/Resources') to your Doctrine mapping paths.

For ODM, add base_path('vendor/nordsoftware/lumen-file-manager/src/Doctrine/ODM/Resources').

You can now use the FileManager facade or inject the Nord\Lumen\FileManager\Contracts\FileManager where needed.

Example

Below is an example of how to use this module to save a file from the request and return a JSON response with the saved file's ID and URL.

public function uploadFile(Request $request, FileManager $fileManager)
{
    $file = $fileManager->saveFile($request->file('upload'));

    return Response::json([
        'id' => $file->getId(),
        'url' => $fileManager->getFileUrl($file),
    ]);
}

Contributing

Please read the guidelines.

License

MIT. See LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].