LaravelPackages.net
Acme Inc.
Toggle sidebar
customergauge/minio

Faking S3 storage with Minio

23.371
3
1.5.0
About customergauge/minio

customergauge/minio is a Laravel package for faking s3 storage with minio. It currently has 3 GitHub stars and 23.371 downloads on Packagist (latest version 1.5.0). Install it with composer require customergauge/minio. Discover more Laravel packages by customergauge or browse all Laravel packages to compare alternatives.

Last updated

Laravel S3 Minio 📁

This library provides a convenient way to write test code that runs against Minio, an S3 compatible storage.

Installation

composer require customergauge/minio

Usage

$minio = new Minio();

$minio->disk('my-bucket', function (S3Client $client, string $bucket) {
    $this->post('/my/endpoint/that/interacts/with/s3', [])
        ->assertSuccessful();

    $object = $client->getObject([
        'Bucket' => $bucket,
        'Key' => "/my/expected/s3/key"
    ]);

    $content = $object['Body']->getContents();

    $this->assertStringContainsString('partial-file-content', $content);
});

Docker Example

  minio:
    image: minio/minio
    ports:
    - 9000:9000
    environment:
      - MINIO_ACCESS_KEY=customergauge
      - MINIO_SECRET_KEY=phpunit123
    command: server /data

Star History Chart