PHPackages                             hergot/databroker - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hergot/databroker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hergot/databroker
=================

data broker

17PHP

Since May 13Pushed 13y ago1 watchersCompare

[ Source](https://github.com/hergot/databroker)[ Packagist](https://packagist.org/packages/hergot/databroker)[ RSS](/packages/hergot-databroker/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

databroker
==========

[](#databroker)

\##Purpose

Databroker helps application to be more elastic e.g. you can easily turn on/off caching for various data fetch (database queries, rest and soap calls, file fetch, ...). It implements plugin architecture so it is easy to extend databroker with additional functionality (cache, monitor, ...).

\##Use Cases

- If you want monitor all database queries, rest calls, ...
- If you want easily turn on cache for select queries, calls, ...
- If you want easily switch calls (e.g. instead of database query use rest call) without changing application code
- If you want non reliably remote call do reliably call (i.e. use fail strategy)

\##Installation

### Clone repository

[](#clone-repository)

`$ git clone git://github.com/hergot/databroker.git && cd databroker`

### Get composer

[](#get-composer)

`$ curl -s https://getcomposer.org/installer | php`

### Run composer

[](#run-composer)

`$ ./composer.phar install --dev`

### Create symbolic link for phpunit

[](#create-symbolic-link-for-phpunit)

`$ ln -nfs ./vendor/phpunit/phpunit/composer/bin/phpunit ./phpunit`

\##Run unit tests

[![Build Status](https://camo.githubusercontent.com/24265385b7bc38cd8982a168740de38ba94de6dc2782819f0aef20665d03d383/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f686572676f742f6461746162726f6b65722e706e67)](http://travis-ci.org/hergot/databroker)

`$ ./phpunit -c .`

\###Run code coverage with unit tests

`$ ./phpunit --coverage-html  -c .`

\###Notes

\####APC

You have to enable apc for cli - apc.enable\_cli=1 in php.ini file or run phpunit with --exclude-group apc

`$ ./phpunit --exclude-group apc -c .`

\##Plugins

\###Cache plugin

This plugin cache data fetch into cache backends (APC, file, ...). This plugin have to be configured via setup method - this method expects name or mask of data fetch call. Mask can contain asterix \* as wild character.

\####Configuration example

`$cachePlugin->setup('*') ->setCacheable(true) ->setLifeTime(60) ->setRefreshTime(10) ->setBackend($cacheBackend);`

This means to cache all (\* - mask) data fetch for 60 seconds. Every 10 seconds refresh content in cache backend. Use $cacheBackend as cache backend.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3104185?v=4)[hergot](/maintainers/hergot)[@hergot](https://github.com/hergot)

---

Top Contributors

[![hergot](https://avatars.githubusercontent.com/u/3104185?v=4)](https://github.com/hergot "hergot (50 commits)")

### Embed Badge

![Health badge](/badges/hergot-databroker/health.svg)

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

###  Alternatives

[reactivex/rxphp

Reactive extensions for php.

1.7k3.3M53](/packages/reactivex-rxphp)[spatie/php-cloneable

A trait that allows you to clone readonly properties in PHP 8.1

971.3M17](/packages/spatie-php-cloneable)[robtimus/multipart

A library to support creating (streaming) multiparts

141.0M14](/packages/robtimus-multipart)[geocoder-php/mapbox-provider

Geocoder Mapbox adapter

121.1M2](/packages/geocoder-php-mapbox-provider)

PHPackages © 2026

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