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

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

ivopetkov/object-storage
========================

A better way to work with files

v1.9.0(5mo ago)159.5k↑25%1MITPHPPHP 8.0.\*|8.1.\*|8.2.\*|8.3.\*|8.4.\*|8.5.\*

Since Jan 7Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/ivopetkov/object-storage)[ Packagist](https://packagist.org/packages/ivopetkov/object-storage)[ Docs](https://github.com/ivopetkov/object-storage)[ Fund](https://www.paypal.me/ivopetkovcom)[ GitHub Sponsors](https://github.com/ivopetkov)[ RSS](/packages/ivopetkov-object-storage/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (36)Used By (1)

Object Storage
==============

[](#object-storage)

**File-based object storage** with simple API, metadata support, atomic operations and transactions.

[![Latest Stable Version](https://camo.githubusercontent.com/af76ab678ef16742faaa5f27cafa104e721a1b92e48832ad9664fc70919bdc08/68747470733a2f2f706f7365722e707567782e6f72672f69766f7065746b6f762f6f626a6563742d73746f726167652f762f737461626c65)](https://packagist.org/packages/ivopetkov/object-storage)[![License](https://camo.githubusercontent.com/cdad4e8a1305072d06af283511a44d0a9adcfb075549e5d50a83214d40c37883/68747470733a2f2f706f7365722e707567782e6f72672f69766f7065746b6f762f6f626a6563742d73746f726167652f6c6963656e7365)](https://packagist.org/packages/ivopetkov/object-storage)

Install via Composer
--------------------

[](#install-via-composer)

```
composer require ivopetkov/object-storage
```

Documentation
-------------

[](#documentation)

Full [documentation](https://github.com/ivopetkov/object-storage/blob/master/docs/markdown/index.md) is available as part of this repository.

Example
-------

[](#example)

```
$storage = new \IvoPetkov\ObjectStorage('path/to/the/data/dir/');

// Save data
$storage->set([
    'key' => 'books/1449392776',
    'body' => 'book 1449392776 content in pdf format',
    'metadata.title' => 'Programming PHP',
    'metadata.authors' => '["Kevin Tatroe", "Peter MacIntyre", "Rasmus Lerdorf"]',
    'metadata.year' => '2013'
]);

// Retrieve data
$result = $storage->get([
    'key' => 'books/1449392776',
    'result' => ['body', 'metadata.title']
]);
// Array
// (
//     [body] => 'book 1449392776 content in pdf format'
//     [metadata.title] => 'Programming PHP'
// )
```

License
-------

[](#license)

This project is licensed under the MIT License. See the [license file](https://github.com/ivopetkov/object-storage/blob/master/LICENSE) for more information.

Contributing
------------

[](#contributing)

Feel free to open new issues and contribute to the project. Let's make it awesome and let's do in a positive way.

Author
------

[](#author)

This library is created and maintained by [Ivo Petkov](https://github.com/ivopetkov/) ([ivopetkov.com](https://ivopetkov.com)).

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance72

Regular maintenance activity

Popularity30

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity92

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

Recently: every ~191 days

Total

35

Last Release

161d ago

Major Versions

v0.6.0 → v1.0.02021-01-01

PHP version history (9 changes)v0.1.2PHP &gt;=5.5.0

v0.3.0PHP &gt;=7.1.0

v1.2.2PHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*|8.0.\*

v1.3.0PHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*|8.0.\*|8.1.\*

v1.4.0PHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*|8.0.\*|8.1.\*|8.2.\*

v1.5.0PHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*|8.0.\*|8.1.\*|8.2.\*|8.3.\*

v1.6.0PHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*|8.0.\*|8.1.\*|8.2.\*|8.3.\*|8.4.\*

v1.7.0PHP 8.0.\*|8.1.\*|8.2.\*|8.3.\*|8.4.\*

v1.9.0PHP 8.0.\*|8.1.\*|8.2.\*|8.3.\*|8.4.\*|8.5.\*

### Community

Maintainers

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

---

Top Contributors

[![ivopetkov](https://avatars.githubusercontent.com/u/13205385?v=4)](https://github.com/ivopetkov "ivopetkov (133 commits)")

---

Tags

atomicdata-storagefile-storagemetadataobject-storagestoragemetadatalockingobject-storagefile accessatomic file operations

### Embed Badge

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

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

###  Alternatives

[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)[filepreviews/filepreviews

PHP client library for FilePreviews.io

2036.0k1](/packages/filepreviews-filepreviews)

PHPackages © 2026

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