Download the PHP package bbcreation/miniostorage without Composer
On this page you can find all versions of the php package bbcreation/miniostorage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bbcreation/miniostorage
More information about bbcreation/miniostorage
Files in bbcreation/miniostorage
Package miniostorage
Short Description minio oss filesystem storage for laravel 5+
License MIT
Informations about the package miniostorage
WArk-MinioStorage
Minio oss filesystem storage for laravel 5+
Minio Server
You can download the minio oss server from here.
Installation
Open the command prompt and type in the following. This will download the package.
After that, add the ServiceProvider to the providers array in config/app.php
You can use the facade for shorter code. Add this to your aliases:
To publish the config settings in Laravel 5 use:
This will add an miniostorage.php config file to your config folder.
Set Environment Variable in .env
file
Usage
Use it like below:
Save Image/Video/Object
Use
Input::file('file')
to get the uploaded file and put it directly.key/key
can be any string.Use the third argument as
true
to upload the raw data as object.
Retrieve Image/Video/Object
Get the object by key string.
Specify the bucket and get the object from the bucket.
List out the objects
List out the objects with specified bucket
Specify the bucket and list out the object from the bucket.
Remove Object
Delete the specified object
Remove Object with specified bucket
Delete the specified object with specified bucket
Check Bucket Exist
Check if the bucket exist or not. Return true if exist and false otherwise.
Create Bucket If Not Exist
Create the bucket if the bucket does not exist.
Create Bucket
Create new bucket
Create Bucket Async
Create new bucket asynchronously
Remove Bucket
Delete the specified bucket
Remove Bucket Async
Delete the specified bucket asynchronously
Copy Object
Copy existing object from to another bucket with new key name
Copy Object From
Copy object from specified bucket to another bucket with new key name
License
The MIT License (MIT). Please see License File for more information.