hexide-digital / file-uploader
upload a large number of files
Installs: 654
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hexide-digital/file-uploader
Requires
- php: ^7.3|^8.0
- illuminate/database: 7.x|8.x
- illuminate/http: 7.x|8.x
- illuminate/support: 7.x|8.x
- laravel/framework: ^8.0
Requires (Dev)
- fakerphp/faker: ^1.9.1
- orchestra/testbench: ^6.2
- phpunit/phpunit: ^9.3.3
README
Upload a large number of files that will be harmoniously distributed in folders, which will allow access even through the terminal
Imagine you have a store with goods, each product has a slider with photos. While there are not many products, you can easily open and view them all, either through a file manager or console.
Now imagine, in one folder there are more than 8 thousand (or more) photos of products of users, etc., and you open this folder, no one will have a hard drive and / or little RAM.
Requirements
- php ^7.4|^8.0,
- laravel 8.*
Installation
The only thing you need to know is that it's just an add-on to the regular one Laravel
StorageFacade, but when you save a file, it gets a multi-level nesting of folders in the path
Require this package with composer using the following command:
composer require hexide-digital/file-uploader
Add the following class to the providers array in config/app.php:
HexideDigital\FileUploader\FileUploaderServiceProvider::class,
Add the following alias to the aliases array in config/app.php:
'FileUploader' => HexideDigital\FileUploader\Facades\FileUploader::class,
Usage
... is simple, use as a Storage
Most used method is put
His arguments
$file- the file itself that you want to save;$type- nested folder, where store file (for exampleimages,files,pdf);$module- can be empty, but it is recommended to specify for convenient search;$uniq_id- if you want to save thefilesin one place, for example,imagesfor one directory for the product, that you can say the product id andimagewill be saved near other product images or files,
Can I hire you guys?
Yes! Say hi: hello@hexide-digital.com We will be happy to work with you! Other work we’ve done
Follow us
Stay up to date with the latest Vuestic news! Follow us on LinkedIn or Facebook