PHPackages                             linkorb/filespace - 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. [Database &amp; ORM](/categories/database)
4. /
5. linkorb/filespace

ActiveLibrary[Database &amp; ORM](/categories/database)

linkorb/filespace
=================

Flexible storage solution for end-user data

v1.3.0(11y ago)22.1k↓22.2%1MITPHPPHP &gt;=5.3.0CI failing

Since May 8Pushed 2y ago3 watchersCompare

[ Source](https://github.com/linkorb/filespace)[ Packagist](https://packagist.org/packages/linkorb/filespace)[ Docs](http://www.github.com/linkorb/filespace)[ RSS](/packages/linkorb-filespace/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (5)Used By (0)

FileSpace
=========

[](#filespace)

Flexible storage solution for end-user data.

[![](https://camo.githubusercontent.com/1e65eb75fc17c4e103b87ae9ae30bd4700de27f0933cb9d7f33e60a3c8a66de6/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6f6e6c696e652f6c696e6b6f72622f75706c6f61642f656e67696e656572696e672d626c6f672f66696c6573706163655f6469616772616d2e706e67)](https://camo.githubusercontent.com/1e65eb75fc17c4e103b87ae9ae30bd4700de27f0933cb9d7f33e60a3c8a66de6/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6f6e6c696e652f6c696e6b6f72622f75706c6f61642f656e67696e656572696e672d626c6f672f66696c6573706163655f6469616772616d2e706e67)

Check out our blogpost to see how we're using it in production:

Installing
----------

[](#installing)

Check out [composer](http://www.getcomposer.org) for details about installing and running composer.

Then, add `linkorb/filespace` to your project's `composer.json`:

```
{
    "require": {
        "linkorb/filespace": "~1.0"
    }
}
```

Usage:
------

[](#usage)

```
use Aws\S3\S3Client;
use FileSpace\Service\PdoService;
use ObjectStorage\Adapter\S3Adapter;

// Instantiate an S3 connection
$s3client = S3Client::factory(array(
    'key' => 'my_s3_key',
    'secret' => 'my_s3_secret'
));

// Get a storage adapter based on the s3 client
$storage = new S3Adapter($s3client, 'my-bucket-name', 'my/key/prefix/');

// Get a PDO connection
$pdo = ... // TODO;

// Instantiate the File Space Service:
$service = new PdoFileSpaceService($pdo, $storage);

// test if a 'space' has been created:
$space_key = 'account-x.contact.c001';
if (!$service->hasSpace($space_key)) {
    $service->createSpace($space_key, "Customer 1: John Johnson");
}
$space = $service->getSpace($space_key);

// List all files in the space
$files = $service->getFiles($space);
foreach ($files as $file) {
    echo $file->getKey() . ': ' . $file->getSizeOriginalDisplay() . "\n";
}

// Upload a file into this space
$service->upload($space, 'contract-final.pdf', '/home/john/Downloads/contract.pdf');

// Download a file from this space:
$service->download($space, 'invoice-1234.pdf', '/home/john/invoices/invoice-1234.pdf');

// Delete a file from the space:
$service->deleteFile($space, 'remove-me.txt');
```

Initializing the database schema
--------------------------------

[](#initializing-the-database-schema)

```
vendor/bin/database-manager database:loadschema --apply filespace example/schema.xml

```

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

[](#contributing)

Ready to build and improve on this repo? Excellent! Go ahead and fork/clone this repo and we're looking forward to your pull requests!

If you are unable to implement changes you like yourself, don't hesitate to open a new issue report so that we or others may take care of it.

Brought to you by the LinkORB Engineering team
----------------------------------------------

[](#brought-to-you-by-the-linkorb-engineering-team)

[![](https://camo.githubusercontent.com/62fb66b034de7ea7fca9fd9776424b5348daa76ef8622caf92c2f7622003e5ef/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6d6574612f74696572312f696d616765732f6c696e6b6f7262656e67696e656572696e672d6c6f676f2e706e67)](https://camo.githubusercontent.com/62fb66b034de7ea7fca9fd9776424b5348daa76ef8622caf92c2f7622003e5ef/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6d6574612f74696572312f696d616765732f6c696e6b6f7262656e67696e656572696e672d6c6f676f2e706e67)
Check out our other projects at [linkorb.com/engineering](http://www.linkorb.com/engineering).

Btw, we're hiring!

License
-------

[](#license)

Please check LICENSE.md for full license information

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 94.1% 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

4

Last Release

4028d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1db66b320db18b8036ea68211b7d8a39e7c6da97e6fd29f59a50380ebb69d0bb?d=identicon)[joostfaassen](/maintainers/joostfaassen)

---

Top Contributors

[![joostfaassen](https://avatars.githubusercontent.com/u/411113?v=4)](https://github.com/joostfaassen "joostfaassen (16 commits)")[![prajapati-kaushik](https://avatars.githubusercontent.com/u/10140681?v=4)](https://github.com/prajapati-kaushik "prajapati-kaushik (1 commits)")

---

Tags

s3storagemongodbnamespaceGridFScloud-storageobjectstoragefilespace

### Embed Badge

![Health badge](/badges/linkorb-filespace/health.svg)

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

###  Alternatives

[linkorb/objectstorage

ObjectStorage library for your cloud-based applications

105.4k6](/packages/linkorb-objectstorage)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[mostafaznv/larupload

Larupload is a ORM based file uploader for laravel to upload image, video, audio and other known files.

73403.7k3](/packages/mostafaznv-larupload)[formapro/yadm

The fastest MongoDB object document mapper.

843.3k3](/packages/formapro-yadm)

PHPackages © 2026

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