PHPackages                             fousheezy/common - 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. fousheezy/common

ActiveLibrary

fousheezy/common
================

ZF2 Common elements

01136PHP

Since Jan 15Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

FzyCommon Module
================

[](#fzycommon-module)

Services
--------

[](#services)

- `FzyCommon\Service\EntityToForm`: accepts doctrine entity and returns a ZF2 form class (\\Zend\\Form\\Form) bound to the entity and hydrated with its information.
- `FzyCommon\EntityToForm`: alias for `FzyCommon\Service\EntityToForm`
- `FzyCommon\Service\Search\Result`: accepts a result provider interface and formats the search result in a standard way
- `FzyCommon\Search\Result`: alias for `FzyCommon\Service\Search\Result`
- `FzyCommon\Service\Url`: service to create URLs from ZF2 route names or from an AWS S3 key
- `FzyCommon\Url`: alias for `FzyCommon\Service\Url`
- `FzyCommon\Service\Render`: service to render a View Model or string path to a view file into HTML
- `FzyCommon\Render`: alias for `FzyCommon\Service\Render`
- `FzyCommon\Config`: returns the ZF2 application's configuration wrapped in a `\FzyCommon\Util\Params` container.
- `FzyCommon\ModuleConfig`: returns config data specific to this module (`\FzyCommon\Service\Base::MODULE_CONFIG_KEY`) wrapped in a `\FzyCommon\Util\Params` container.
- `FzyCommon\Service\Aws\Config`: returns the `aws` key from `FzyCommon\ModuleConfig` wrapped in a `\FzyCommon\Util\Params` container.
- `FzyCommon\Service\Aws\S3\Config`: returns the `s3` key from `FzyCommon\Service\Aws\Config` wrapped in a `\FzyCommon\Util\Params` container.
- `FzyCommon\Service\Aws\S3`: returns configured `\Aws\S3\S3Client` object (using `FzyCommon\Service\Aws\S3\Config`)
- `FzyCommon\Factory\DoctrineCache`: returns configured `Doctrine\Common\Cache` class based on environment.

View Helpers
------------

[](#view-helpers)

- `fzyFlashMessages`: returns an array of arrays of messages in the flash messenger, indexed by their type. e.g. `[ "success": [ "Your settings have been saved" ], "warning": [], "danger": [], "info": []  ]`
- `fzyEntityToForm`: provides shortcut to the `FzyCommon\Service\EntityToForm` service
- `fzyNgInit`: handles json encoding and escaping literals, objects and doctrine entities for injection into an angular scope.
- `fzyRequest`: accessor for the view to query the current request

Controller Plugins
------------------

[](#controller-plugins)

- `fzySearchResult`: plugin to standardize the response format for a search.
- `fzyUpdateResult`: plugin to standardize the response format for an update.
- `fzyEntityToForm`: provides shortcut to the `FzyCommon\Service\EntityToForm` service

Controllers
-----------

[](#controllers)

Options
-------

[](#options)

- `debug`: used as a flag to indicate this code should expose errors and exceptions for debugging.
- `production`: used as a flag to indicate this code is running in a production environment.
- `doctrine_cache`: the service key to be used for generating the doctrine cache object. (default: `FzyCommon\Factory\DoctrineCache` which is a Redis service)
- `doctrine_cache_config`: configuration for setting up the doctrine\_cache service. (default: the Redis connection credentials)
- `aws`: configuration for connecting to AWS services (should contain credentials indexed by service like:

```
"aws": [
  "s3": [
    "key": "your-aws-key",
    "secret": "your-aws-secret"
  ]
]

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

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://www.gravatar.com/avatar/ced487fe24873dd2183bf1d34e663acf5a07673ea0a96569c0365679b90b8294?d=identicon)[fousheezy](/maintainers/fousheezy)

---

Top Contributors

[![foush](https://avatars.githubusercontent.com/u/708458?v=4)](https://github.com/foush "foush (59 commits)")

### Embed Badge

![Health badge](/badges/fousheezy-common/health.svg)

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

PHPackages © 2026

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