PHPackages                             vortos/vortos-object-store - 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. vortos/vortos-object-store

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

vortos/vortos-object-store
==========================

Vortos object storage — S3-compatible storage with first-class Cloudflare R2 defaults

v1.0.0-alpha-221(2w ago)0393↑2211.1%1MITPHPPHP &gt;=8.2

Since May 28Pushed 1w agoCompare

[ Source](https://github.com/Vortos/vortos-object-store)[ Packagist](https://packagist.org/packages/vortos/vortos-object-store)[ RSS](/packages/vortos-vortos-object-store/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (105)Versions (100)Used By (1)

Vortos Object Store
===================

[](#vortos-object-store)

S3-compatible object storage with Cloudflare R2 defaults, transactional outbox, direct-to-cloud uploads, and server-side multipart transfers.

Design
------

[](#design)

- User file uploads go directly to R2/S3 via presigned URLs. The backend issues a signed URL, stores the object key, and promotes from `tmp/` to a permanent key after validation.
- Mutations (put, delete, copy, move) are queued through the outbox so file adoption is atomic with domain DB changes.
- `tmp/` keys are cleaned up by a bucket lifecycle rule managed via `vortos:object-store:lifecycle`.
- Integration tests run against real R2/S3 credentials. LocalStack is not part of this package.

Configuration
-------------

[](#configuration)

```
use Vortos\ObjectStore\DependencyInjection\VortosObjectStoreConfig;

return static function (VortosObjectStoreConfig $config): void {
    $config
        ->driver('s3')
        ->provider('r2')
        ->region('auto')
        ->bucket($_ENV['OBJECT_STORE_BUCKET']);

    $config->client()
        ->accountId($_ENV['OBJECT_STORE_ACCOUNT_ID'])
        ->credentials($_ENV['OBJECT_STORE_ACCESS_KEY_ID'], $_ENV['OBJECT_STORE_SECRET_ACCESS_KEY']);

    $config->bucketConfig()
        ->temporaryKeyPrefix('tmp')
        ->publicBaseUrl($_ENV['OBJECT_STORE_PUBLIC_BASE_URL'] ?? null)
        ->maxUploadSizeBytes(5_368_709_120)
        ->maxPresignTtlSeconds(3600);

    $config->lifecycle()
        ->enabled(true)
        ->requireConfirmation(true);
};
```

Service Guarantees
------------------

[](#service-guarantees)

The injected interface defines the delivery guarantee. There is no hidden config switch.

```
// Business workflows: outbox row is atomic with domain DB changes.
// Use only inside CommandBus command handlers.
DirectUploadManagerInterface $uploads;
ObjectStoreInterface $objects;

// Maintenance workflows: outbox reliability, but only the outbox row is transactional.
StandaloneDirectUploadManagerInterface $uploads;
StandaloneObjectStoreInterface $objects;

// Diagnostics and probes: direct provider call, no outbox.
ImmediateDirectUploadManagerInterface $uploads;
ImmediateObjectStoreInterface $objects;
```

Direct Upload Flow
------------------

[](#direct-upload-flow)

1. Call `DirectUploadManagerInterface::createUploadIntent()` for a `tmp/...` key.
2. The client uploads directly to R2/S3 using the returned signed URL.
3. Persist domain data with the temporary key.
4. After validation, call `promote()` — copies to a permanent key, optionally deletes the source.

Server-Side Multipart
---------------------

[](#server-side-multipart)

`ServerSideMultipartUploadManagerInterface` handles backend-owned transfers: imports, exports, migrations, CLI jobs. It validates S3 part limits, keeps memory bounded by part size, retries transient part failures, and aborts failed uploads. Do not use it for browser uploads — use the direct-to-cloud flow above.

Lifecycle Provisioning
----------------------

[](#lifecycle-provisioning)

Lifecycle rules are never applied during HTTP requests, workers, or container boot.

```
php bin/console vortos:object-store:lifecycle show
php bin/console vortos:object-store:lifecycle plan
php bin/console vortos:object-store:lifecycle apply --confirm
php bin/console vortos:object-store:lifecycle remove --confirm
```

The managed rule ID defaults to `vortos-object-store-expire-temporary-uploads`. The manager upserts only that rule, preserves unrelated rules, and writes the merged lifecycle config back through the S3 API.

Commands
--------

[](#commands)

```
php bin/console vortos:object-store:head
php bin/console vortos:object-store:presign
php bin/console vortos:object-store:presign  --upload --content-type=video/mp4 --max-size=209715200
php bin/console vortos:object-store:relay
php bin/console vortos:object-store:lifecycle
php bin/console vortos:object-store:multipart list --prefix=imports/
php bin/console vortos:object-store:multipart abort --key=imports/big.csv --upload-id= --confirm
php bin/console vortos:object-store:multipart abort-stale --older-than="-24 hours" --dry-run
php bin/console vortos:worker:install --worker=object-store-outbox-relay
```

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance97

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Total

99

Last Release

18d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d4a94fd7127f8bdb58b2bb2249a140569a584b67b2df184f1e8594b497d397e2?d=identicon)[Sachintha-De-Silva](/maintainers/Sachintha-De-Silva)

---

Top Contributors

[![ignis-celestis](https://avatars.githubusercontent.com/u/155328409?v=4)](https://github.com/ignis-celestis "ignis-celestis (12 commits)")

### Embed Badge

![Health badge](/badges/vortos-vortos-object-store/health.svg)

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

###  Alternatives

[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

10.2k4.0k](/packages/leantime-leantime)[sylius/sylius

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

8.5k5.9M754](/packages/sylius-sylius)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[web-auth/webauthn-lib

FIDO2/Webauthn Support For PHP

12510.5M141](/packages/web-auth-webauthn-lib)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

515100.5k3](/packages/web-auth-webauthn-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M600](/packages/shopware-core)

PHPackages © 2026

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