PHPackages                             bbcreation/miniostorage - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. bbcreation/miniostorage

ActiveLibrary[File &amp; Storage](/categories/file-storage)

bbcreation/miniostorage
=======================

minio oss filesystem storage for laravel 5+

v1.1.0(9y ago)034MITPHPPHP &gt;=5.5.0

Since Feb 23Pushed 5y agoCompare

[ Source](https://github.com/bbcreation/MinioStorage)[ Packagist](https://packagist.org/packages/bbcreation/miniostorage)[ RSS](/packages/bbcreation-miniostorage/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

WArk-MinioStorage
=================

[](#wark-miniostorage)

[![Laravel 5.x](https://camo.githubusercontent.com/5a1939c3fb1f6760124421638f59ab4ed15b6d03dbb30a6824df9af781880437/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d352e782d6f72616e67652e737667)](http://laravel.com)[![DUB](https://camo.githubusercontent.com/89fa43da53e4236dd2d44ac28eb59bb20683a8bca3ab45aa09f89ccb325cf640/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542532304c6963656e73652d3443433431372e737667)](https://github.com/wandrewchan/WArk-MinioStorage/blob/master/LICENSE)[![DUB](https://camo.githubusercontent.com/6ad3f29a9bf94af4898532996189465a88df72492c3d5b9f14631037bfc3940e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5061636b676973742d76312e312e302d6f72616e67652e737667)](https://packagist.org/packages/wark/miniostorage)[![DUB](https://camo.githubusercontent.com/9fc7ef59fcecdbd312f3023204b0eb099cecfde8fbd4354df524c5103a17a9a0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6d706f7365722d436f6d70617469626c652d677265656e2e737667)](https://packagist.org/packages/wark/miniostorage)[![DUB](https://camo.githubusercontent.com/1484b1ee16b2bcd1e7cc7786931240fef072e0829a4235025337a8b94023ab27/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c616e67756167652d504850352e36253743372e782d3632344339322e737667)](http://php.net/downloads.php)[![DUB](https://camo.githubusercontent.com/b33c3a7975d59ad204955a43c4195018e1fb8417e2d690ef6a3b1752d96d3064/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506c6174666f726d2d5765622d627269676874677265656e2e737667)](https://camo.githubusercontent.com/b33c3a7975d59ad204955a43c4195018e1fb8417e2d690ef6a3b1752d96d3064/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506c6174666f726d2d5765622d627269676874677265656e2e737667)

Minio oss filesystem storage for laravel 5+

Minio Server
------------

[](#minio-server)

You can download the minio oss server from [here](https://github.com/minio/minio).

```
Minio is an object storage server. Size of an object can range from a few KBs to a maximum of 5TB.
It is best suited for storing unstructured data such as photos, videos, log files, backups
and container / VM images.

Minio server is light enough to be bundled with the application stack, similar to NodeJS, Redis and MySQL.

```

Installation
------------

[](#installation)

\####Open the command prompt and type in the following. This will download the package.

```
composer require wark/miniostorage
```

\####After that, add the ServiceProvider to the providers array in `config/app.php`

```
WArk\Minio\Providers\MinioStorageServiceProvider::class,
```

\####You can use the facade for shorter code. Add this to your aliases:

```
'MinioStorage' => WArk\Minio\Facades\MinioStorage::class,
```

\####To publish the config settings in Laravel 5 use:

```
php artisan vendor:publish
```

> This will add an miniostorage.php config file to your config folder.

\####Set Environment Variable in `.env` file

```
MINIO_ACCESS_KEY=
MINIO_ACCESS_SECRET=
MINIO_ACCESS_REGION=null
MINIO_BUCKET_NAME=
MINIO_ACCESS_ENDPOINT=http://localhost:9000
```

\##Usage

Use it like below: ####Save Image/Video/Object

```
MinioStorage::store('key/key', Input::file('file'));
```

> Use `Input::file('file')` to get the uploaded file and put it directly. `key/key` can be any string.

```
$data = file_get_contents('data');
MinioStorage::store('key/key', $data, true);
```

> Use the third argument as `true` to upload the raw data as object.

\####Retrieve Image/Video/Object

```
MinioStorage::get('key/key');
```

> Get the object by key string.

```
MinioStorage::getWithBucket('bucket', 'key/key');
```

> Specify the bucket and get the object from the bucket.

\####List out the objects

```
MinioStorage::listObjects();
```

\####List out the objects with specified bucket

```
MinioStorage::listObjectsWithBucket();
```

> Specify the bucket and list out the object from the bucket.

\####Remove Object

```
MinioStorage::removeObject('key');
```

> Delete the specified object

\####Remove Object with specified bucket

```
MinioStorage::removeObjectWithBucket('bucket','key');
```

> Delete the specified object with specified bucket

\####Check Bucket Exist

```
MinioStorage::checkBucketExist('bucketName');
```

> Check if the bucket exist or not. Return true if exist and false otherwise.

\####Create Bucket If Not Exist

```
MinioStorage::createBucketIfNotExist('bucketName');
```

> Create the bucket if the bucket does not exist.

\####Create Bucket

```
MinioStorage::createBucket('bucketName');
```

> Create new bucket

\####Create Bucket Async

```
MinioStorage::createBucketAsync('bucketName');
```

> Create new bucket asynchronously

\####Remove Bucket

```
MinioStorage::removeBucket('bucketName');
```

> Delete the specified bucket

\####Remove Bucket Async

```
MinioStorage::removeBucketAsync('bucketName');
```

> Delete the specified bucket asynchronously

\####Copy Object

```
MinioStorage::copyObject('key', 'toBucketName', 'toKey');
```

> Copy existing object from to another bucket with new key name

\####Copy Object From

```
MinioStorage::copyObjectFrom('fromBucketName', 'key', 'toBucketName', 'toKey');
```

> Copy object from specified bucket to another bucket with new key name

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/wandrewchan/WArk-MinioStorage/blob/master/LICENSE) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

2

Last Release

3368d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a42c18ee9a8c09c920d2e5ab565f734720f4dd9d28d4980c8e25fad2c19fc17d?d=identicon)[bbcreation](/maintainers/bbcreation)

---

Top Contributors

[![wandrewchan](https://avatars.githubusercontent.com/u/25978255?v=4)](https://github.com/wandrewchan "wandrewchan (33 commits)")[![bbcreation](https://avatars.githubusercontent.com/u/12559573?v=4)](https://github.com/bbcreation "bbcreation (4 commits)")

---

Tags

laravelstoragefilesystemsoss

### Embed Badge

![Health badge](/badges/bbcreation-miniostorage/health.svg)

```
[![Health](https://phpackages.com/badges/bbcreation-miniostorage/health.svg)](https://phpackages.com/packages/bbcreation-miniostorage)
```

###  Alternatives

[jacobcyl/ali-oss-storage

aliyun oss filesystem storage for laravel 5+

523566.2k7](/packages/jacobcyl-ali-oss-storage)[alphasnow/aliyun-oss-laravel

alibaba cloud object storage service for laravel

182240.7k2](/packages/alphasnow-aliyun-oss-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
