PHPackages                             protonemedia/laravel-minio-testing-tools - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. protonemedia/laravel-minio-testing-tools

ActiveLibrary[Testing &amp; Quality](/categories/testing)

protonemedia/laravel-minio-testing-tools
========================================

This is my package laravel-minio-testing-tools

1.7.0(2mo ago)156982[2 PRs](https://github.com/protonemedia/laravel-minio-testing-tools/pulls)MITPHPPHP ^8.2|^8.3|^8.4|^8.5CI passing

Since May 16Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/protonemedia/laravel-minio-testing-tools)[ Packagist](https://packagist.org/packages/protonemedia/laravel-minio-testing-tools)[ Docs](https://github.com/protonemedia/laravel-minio-testing-tools)[ RSS](/packages/protonemedia-laravel-minio-testing-tools/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (9)Versions (15)Used By (0)

Laravel MinIO Testing Tools
===========================

[](#laravel-minio-testing-tools)

[![Latest Version on Packagist](https://camo.githubusercontent.com/093ccf1745e443cc509d68e586cc19cf46cea28dad056af4c9309084ac14ac9f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70726f746f6e656d656469612f6c61726176656c2d6d696e696f2d74657374696e672d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/protonemedia/laravel-minio-testing-tools)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![GitHub Tests Action Status](https://camo.githubusercontent.com/5f643ed98c3c125a71324869f56b90ba73af7ef9d325790c68069e2ed40144e6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f70726f746f6e656d656469612f6c61726176656c2d6d696e696f2d74657374696e672d746f6f6c732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/protonemedia/laravel-minio-testing-tools/actions?query=workflow%3Arun-tests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/ff55a3dda2cccc8b846b78f2a51e92baa20c690f131c5be0da5388d5a670afd4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70726f746f6e656d656469612f6c61726176656c2d6d696e696f2d74657374696e672d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/protonemedia/laravel-minio-testing-tools)[![Buy us a tree](https://camo.githubusercontent.com/130148911f548b001b2ac68a32c0a06559977ca60ada3bf480c72ae4ea093175/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54726565776172652d2546302539462538432542332d6c69676874677265656e)](https://plant.treeware.earth/protonemedia/laravel-minio-testing-tools)

This package provides a trait to run your tests against a MinIO S3 server.

📝 Blog post:

Sponsor Us
----------

[](#sponsor-us)

[![](https://camo.githubusercontent.com/b5348f68e9a1a6ff90432d75a6692be1d604b3320ce1fcabd4b1ef29668053c4/68747470733a2f2f696e657274696175692e636f6d2f76697369742d636172642e6a7067)](https://inertiaui.com/inertia-table?utm_source=github&utm_campaign=laravel-minio-testing-tools)

❤️ We proudly support the community by developing Laravel packages and giving them away for free. If this package saves you time or if you're relying on it professionally, please consider [sponsoring the maintenance and development](https://github.com/sponsors/pascalbaljet) and check out our latest premium package: [Inertia Table](https://inertiaui.com/inertia-table?utm_source=github&utm_campaign=laravel-minio-testing-tools). Keeping track of issues and pull requests takes time, but we're happy to help!

Features
--------

[](#features)

- Starts and configures a MinIO server for your tests.
- Updates the `filesystems` disk configuration.
- Updates and restores the `.env` file.
- Works with [Laravel Dusk](https://laravel.com/docs/9.x/dusk).
- Works on [GitHub Actions](#github-actions)
- Compatible with Laravel 10.
- PHP 8.2 or higher is required.

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

[](#installation)

Make sure you've downloaded the [MinIO Server and Client](https://min.io/download#/linux) for your OS.

You can install the package via composer:

```
composer require protonemedia/laravel-minio-testing-tools --dev
```

Add the trait to your test, and add the `bootUsesMinIOServer` method:

```
