PHPackages                             chialab/object-storage - 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. chialab/object-storage

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

chialab/object-storage
======================

A collection of adapters for various object storage services.

v0.1.3(9mo ago)310.1k↓33.3%[7 PRs](https://github.com/chialab/php-object-storage/pulls)1MITPHPPHP ^8.3CI passing

Since May 25Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/chialab/php-object-storage)[ Packagist](https://packagist.org/packages/chialab/object-storage)[ RSS](/packages/chialab-object-storage/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (11)Versions (16)Used By (1)

PHP Object Storage
==================

[](#php-object-storage)

This library provides a PHP implementation for using various object storage backends.

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

[](#installation)

You can install this library using [composer](https://getcomposer.org):

```
composer install chialab/object-storage
```

To use AWS S3 as a backend storage, the SDK is also needed:

```
composer install aws/aws-sdk-php
```

Adapters
--------

[](#adapters)

The plugin currently provides the following adapters.

You can create other adapters by implementing `MultipartUploadInterface`.

### `FilesystemAdapter`

[](#filesystemadapter)

This adapter uses the filesystem to store objects.

Takes an ordered array of arguments:

1. path to the root files folder
2. path to the temporary folder where multipart uploads are stored until finalization
3. base for object URLs from which the webserver serves the files
4. an optional umask for created files (defaults to octal `0077`)

### `S3Adapter`

[](#s3adapter)

This adapter uses an AWS S3 bucket to store objects.

Takes an ordered array of arguments:

1. an `Aws\S3\S3Client` instance
2. the name of the bucket
3. an optional key prefix to use for all files (defaults to empty)
4. an optional custom base for object URLs (defaults to empty)

### `InMemoryAdapter`

[](#inmemoryadapter)

This adapter uses volatile memory to store objects.

Takes only one argument:

1. base for object URLs

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance74

Regular maintenance activity

Popularity27

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~233 days

Recently: every ~239 days

Total

6

Last Release

287d ago

PHP version history (2 changes)v0.1.0-alpha.1PHP ~8.1

v0.1.3PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/00305fda0159b5d71f7bd6848ae7d3f7ac27d0179d79d58c4847848c8bd673e0?d=identicon)[fquffio](/maintainers/fquffio)

![](https://www.gravatar.com/avatar/36a1b89a62185411675b209cd97652abd29a4e98bd3e68cb5e402bee9ae883d6?d=identicon)[le0m](/maintainers/le0m)

![](https://www.gravatar.com/avatar/4bb153a6227d7c6cd124f94c414e63d68cb1b1def8a6fdac75770c495cb8713d?d=identicon)[edoardocavazza](/maintainers/edoardocavazza)

---

Top Contributors

[![fquffio](https://avatars.githubusercontent.com/u/7108146?v=4)](https://github.com/fquffio "fquffio (29 commits)")[![le0m](https://avatars.githubusercontent.com/u/10656716?v=4)](https://github.com/le0m "le0m (16 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (11 commits)")[![edoardocavazza](https://avatars.githubusercontent.com/u/3907295?v=4)](https://github.com/edoardocavazza "edoardocavazza (6 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/chialab-object-storage/health.svg)

```
[![Health](https://phpackages.com/badges/chialab-object-storage/health.svg)](https://phpackages.com/packages/chialab-object-storage)
```

###  Alternatives

[aws/aws-sdk-php

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

6.2k511.3M2.2k](/packages/aws-aws-sdk-php)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k9.6M468](/packages/saloonphp-saloon)

PHPackages © 2026

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