PHPackages                             innmind/s3 - 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. innmind/s3

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

innmind/s3
==========

Manipulate a S3 bucket

6.0.0(1mo ago)06MITPHPPHP ~8.4CI failing

Since Sep 14Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/Innmind/S3)[ Packagist](https://packagist.org/packages/innmind/s3)[ Docs](http://github.com/Innmind/S3)[ RSS](/packages/innmind-s3/feed)WikiDiscussions develop Synced 3d ago

READMEChangelog (10)Dependencies (10)Versions (18)Used By (0)

S3
==

[](#s3)

[![CI](https://github.com/Innmind/S3/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/Innmind/S3/actions/workflows/ci.yml)[![codecov](https://camo.githubusercontent.com/632f57eb04d5aa3611fd961605ee3b8fbc216a598928778076299affa3f4eeda/68747470733a2f2f636f6465636f762e696f2f67682f496e6e6d696e642f53332f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/Innmind/S3)[![Type Coverage](https://camo.githubusercontent.com/a7b5b90050d3f9a30740885a0883c187c8ff7b046b4da672dc30cc210150e045/68747470733a2f2f73686570686572642e6465762f6769746875622f496e6e6d696e642f53332f636f7665726167652e737667)](https://shepherd.dev/github/Innmind/S3)

Minimalist abstraction to work with any S3 bucket.

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

[](#installation)

```
composer require innmind/s3
```

Usage
-----

[](#usage)

```
use Innmind\S3\{
    Factory,
    Region,
};
use Innmind\OperatingSystem\Factory as OSFactory;
use Innmind\Filesystem\File\Content;
use Innmind\Url\{
    Url,
    Path,
};

$os = OSFactory::build();

$bucket = Factory::of($os)->build(
    Url::of('https://acces_key:acces_secret@bucket-name.s3.region-name.scw.cloud/'),
    Region::of('region-name'),
);

$file = $bucket->get(Path::of('some-file.txt'))->match(
    static fn(Content $file) => $file,
    static fn() => throw new \RuntimeException('File does not exist'),
);
$bucket->upload(Path::of('some-other-name.txt'), $file)->match( // essentially this will copy the file
    static fn() => null, // everything ok
    static fn(\Throwable $e) => throw $e,
);
```

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance94

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 100% 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 ~171 days

Recently: every ~166 days

Total

15

Last Release

33d ago

Major Versions

1.0.0 → 2.0.02020-02-02

2.1.0 → 3.0.02023-01-15

3.2.1 → 4.0.02023-11-01

4.1.4 → 5.0.02025-06-02

5.0.0 → 6.0.02026-04-12

PHP version history (6 changes)1.0.0PHP ~7.2

2.0.0PHP ~7.4

2.1.0PHP ~7.4|~8.0

3.0.0PHP ~8.1

3.2.0PHP ~8.2

6.0.0PHP ~8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/851425?v=4)[Baptiste Langlade](/maintainers/Baptouuuu)[@Baptouuuu](https://github.com/Baptouuuu)

---

Top Contributors

[![Baptouuuu](https://avatars.githubusercontent.com/u/851425?v=4)](https://github.com/Baptouuuu "Baptouuuu (211 commits)")

---

Tags

aws-s3buckets3awsbucket

### Embed Badge

![Health badge](/badges/innmind-s3/health.svg)

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

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.2k](/packages/league-flysystem)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k511.3M2.2k](/packages/aws-aws-sdk-php)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k35.6M75](/packages/aws-aws-sdk-php-laravel)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[async-aws/s3

S3 client, part of the AWS SDK provided by AsyncAws.

5714.0M32](/packages/async-aws-s3)

PHPackages © 2026

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