PHPackages                             phpwax/mogilefs - 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. phpwax/mogilefs

ActiveLibrary

phpwax/mogilefs
===============

MogileFS Component

110PHP

Since Nov 20Pushed 13y ago2 watchersCompare

[ Source](https://github.com/phpwax/mogilefs)[ Packagist](https://packagist.org/packages/phpwax/mogilefs)[ RSS](/packages/phpwax-mogilefs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

MogileFS PHP Model
==================

[](#mogilefs-php-model)

This library is an abstraction model for a file stored in MogileFS. The idea is to have a clearly defined api to use for storing and retrieving files from MogileFS.

On find, only paths are retrieved by default, while other properties like domain and class are lazyloaded on request.

This model also include a mysql adapter, as a hack to do bulk operations for looking up multiple paths in one operation. This adapter is likely to break for future MogileFS versions, but MogileFS currently doesn’t support getting multiple paths in one query natively.

Example usage
-------------

[](#example-usage)

```
