2017 © Pedro Peláez
 

library imbo-multi-backend

Use multiple database/storage backends for Imbo

image

imbo/imbo-multi-backend

Use multiple database/storage backends for Imbo

  • Wednesday, December 2, 2015
  • by rexxars
  • Repository
  • 2 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

imbo-multi-backend

Use multiple database/storage backends for Imbo, (*1)

Installation

Setting up the dependencies

If you've installed Imbo through composer, getting the multi backend adapter up and running is really simple. Simply add imbo/imbo-multi-backend as a dependency and run composer update., (*2)

{
    "require": {
        "imbo/imbo-multi-backend": "dev-master",
    }
}

Configuring Imbo

Once you've got it installed, you need to configure the adapter. An example configuration file can be found in config/config.dist.php. Simply copy the file to your Imbo config folder, adjust the parameters and name it multi-backend.php, for instance. Imbo should pick it up automatically and use the configured adapters., (*3)

A word of warning

This is in early stages of development, and there are a lot of scenarios that have not been accounted for. The way it works currently is to simply loop through the backends provided and try to perform the same operation on each backend, one at a time. Exceptions triggered from any of these adapters can cause the two backends to end up in an unsynced state. In the future, you could image some sort of rollback pattern being applied in cases like this, to try and have synchronized backends., (*4)

For fetch operations, it'll try to read the data/status from each backend until it finds one that returns a positive result. If none is found, a 404 is triggered (as expected)., (*5)

License

Copyright (c) 2015, Espen Hovlandsdal, (*6)

Licensed under the MIT License, (*7)

The Versions

02/12 2015

dev-master

9999999-dev

Use multiple database/storage backends for Imbo

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

database backend storage multiple imbo

02/12 2015

0.0.2

0.0.2.0

Use multiple database/storage backends for Imbo

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

database backend storage multiple imbo

02/12 2015

0.0.1

0.0.1.0

Use multiple database/storage backends for Imbo

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

database backend storage multiple imbo