PHPackages                             fagundes/zff-base - 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. fagundes/zff-base

AbandonedArchivedLibrary

fagundes/zff-base
=================

A ZF2 module that gathers a set of classes which are commonly used in several ZF2 projects

0.1.7(10y ago)1112MITPHPPHP &gt;=5.5

Since Dec 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/fagundes/ZffBase)[ Packagist](https://packagist.org/packages/fagundes/zff-base)[ Docs](https://github.com/fagundes/ZffBase)[ RSS](/packages/fagundes-zff-base/feed)WikiDiscussions develop Synced today

READMEChangelogDependencies (12)Versions (6)Used By (0)

[![Latest Unstable Version](https://camo.githubusercontent.com/4888a90ae406e65c7a95c3ac973c9f2df22fd6cc68f37e3746eb7fb96e8db1b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f666167756e6465732f7a66662d626173652e737667)](https://packagist.org/packages/fagundes/zff-base)[![Build Status](https://camo.githubusercontent.com/063c697126e308a7242a16b69af13af8c1ebb35dfde873bf208d05f219abd839/68747470733a2f2f7472617669732d63692e6f72672f666167756e6465732f5a6666426173652e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/fagundes/ZffBase)[![Coverage Status](https://camo.githubusercontent.com/c2b0ad028cbc3f8db6156a46f24ae895f9f477ce07d452e0917cf9a2c50cd9cc/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f666167756e6465732f5a6666426173652f62616467652e7376673f6272616e63683d646576656c6f7026736572766963653d676974687562)](https://coveralls.io/github/fagundes/ZffBase?branch=develop)

[![Latest Stable Version](https://camo.githubusercontent.com/177fa1edf4ad832ef8ab1c2ad104cdd0b68b944d80a05bbc8907b67b370fa8de/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666167756e6465732f7a66662d626173652e737667)](https://packagist.org/packages/fagundes/zff-base)[![Build Status](https://camo.githubusercontent.com/a29668229a4284e77a85c748a85f4eddd9f90f82e5bdd0a2c79e3939521261b2/68747470733a2f2f7472617669732d63692e6f72672f666167756e6465732f5a6666426173652e7376673f6272616e63683d302e312e37)](https://travis-ci.org/fagundes/ZffBase)[![Coverage Status](https://camo.githubusercontent.com/68cc0bfc9bdb5b2a8cc53ba575d3fa39894288ad24630b27f72bf0339a776d9b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f666167756e6465732f5a6666426173652f62616467652e7376673f6272616e63683d302e312e3726736572766963653d676974687562)](https://coveralls.io/github/fagundes/ZffBase?branch=0.1.7)

[![Total Downloads](https://camo.githubusercontent.com/e832045ea9394eb213db4db01512b507cf376b6f936f7a40e3fc2b652abbf6e0/68747470733a2f2f706f7365722e707567782e6f72672f666167756e6465732f7a66662d626173652f646f776e6c6f616473)](https://packagist.org/packages/fagundes/zff-base) [![License](https://camo.githubusercontent.com/60e2662d99be02046f5c596500c7f73fcdc9862374ac117208e01ab15d3ef434/68747470733a2f2f706f7365722e707567782e6f72672f666167756e6465732f7a66662d626173652f6c6963656e7365)](https://packagist.org/packages/fagundes/zff-base)

Zff Base for Zend Framework 2
=============================

[](#zff-base-for-zend-framework-2)

`Zff\Base` module is a set of classes which are commonly used in several ZF2 projects.

Requirements
------------

[](#requirements)

- php 5.5+ (with fileinfo extension)
- Zend Framework 2
- DoctrineModule &amp; DoctrineORMModule
- ZFTable (optional)

Installation
------------

[](#installation)

Installation of this module uses composer. For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

```
php composer.phar require fagundes/zff-base:0.*
```

Then add `Zff\\Base` to your `config/application.config.php`.

Installation without composer is not officially supported and requires you to manually install all dependencies that are listed in composer.json

Contribuing
-----------

[](#contribuing)

If you want to help check the contribuing instructions [here](CONTRIBUTING.md).

TODO
----

[](#todo)

- translate files to english (Partial++++)
- setup and include tests cases (Partial+)
- review abstract factories (Partial+)
- create documentation with examples

Main classes available
----------------------

[](#main-classes-available)

- Abstract Factories:
    - `Form\FormAbstractFactory` - creates all classes that inherits of `Form\AbstractForm` or `Form\AbstractFieldset`
    - `Form\InputFilterAbstractFactory` - creates all classes that inherits of `Form\AbstractInputFilter`
    - `Service\ServiceAbstractFactory` - creates all classes that inherits of `Service\AbstractService`
- Util classes at the namespace `Util`:
    - `Util\Debugger` - Debug fuctions.
    - `Util\File` - Some functions to handle files.
    - and more
- Others abstract classes:
    - `Entity\AbstractEntity` - Entity
    - `Service\AbstractService` - Service
    - `Form\AbstractForm` - Form
    - `Form\AbstractInputFilter` - InputFilter
- Helper classes
    - `View\Helper\Link` - creates a tag Anchor using Url Helper params
    - `View\Helper\PostLink` - as Link but uses js to POST
    - `View\Helper\PaginatorLink` - as PostLink receives a $page to create a tag Anchor
    - `View\Helper\GetRoute` - checks if a passed route is the current one
    - `View\Helper\Escaper\NoEscape` - creates a fake Escape, usefull with some helpers that must have a escape but you dont really want to change anything
- Form Elements
    - `Form\Element\Bs*` - Includes Bootstrap 4 classes
- Form Helper classes
    - `Form\View\Helper\BsFormRow` - Creates a single element (as FormRow Helper) but using Bootstrap struture and css classes
    - `Form\View\Helper\BsForm` - Creates the entire form (as Form Helper) but using Bootstrap struture and css classes
    - `Form\View\Helper\FormActionButton` -
    - `Form\View\Helper\FormInputClasses` -
    - `Form\View\Helper\FormMultiCheckboxSplit` -
    - `Form\View\Helper\FormRadioSplit` -
- Router
    - `Mvc\Router\ControllerRouteStack` - Copy a model route to several children controllers

###  Health Score

25

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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.

###  Release Activity

Cadence

Every ~29 days

Total

4

Last Release

3659d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a488c4d3cfa2f8b3759d907c04cd7da9d347a25090424efbd7b8f1b57937543?d=identicon)[fagundes](/maintainers/fagundes)

---

Top Contributors

[![fagundes](https://avatars.githubusercontent.com/u/169477?v=4)](https://github.com/fagundes "fagundes (83 commits)")

---

Tags

zf2utilDoctrine 2twbsbootstrap 3bootstrap 4

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/fagundes-zff-base/health.svg)

```
[![Health](https://phpackages.com/badges/fagundes-zff-base/health.svg)](https://phpackages.com/packages/fagundes-zff-base)
```

###  Alternatives

[zf-commons/zfc-user

A generic user registration and authentication module for ZF2. Supports Zend\\Db and Doctrine2.

4961.1M66](/packages/zf-commons-zfc-user)[snapshotpl/zf-snap-php-debug-bar

PHP Debug Bar module for Zend Framework 2

3026.1k](/packages/snapshotpl-zf-snap-php-debug-bar)[mtymek/mt-mail

Zend Framework e-mail module. Using this library can easily create e-mail messages from PHTML templates (with optional layouts) and send them using configurable transports. Pluggable, EventManager-driven architecture allows you to customize every aspect of the process.

1838.9k3](/packages/mtymek-mt-mail)

PHPackages © 2026

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