PHPackages                             girafa/crud - 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. [Database &amp; ORM](/categories/database)
4. /
5. girafa/crud

ActiveLibrary[Database &amp; ORM](/categories/database)

girafa/crud
===========

ZF2 module used to facilitate crud operations on doctrine entities.

1171PHP

Since Aug 4Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

[![Total Downloads](https://camo.githubusercontent.com/4621cf1a0a6c1ed3ad4684f4df8fc05c0af34dac95ddb75e9ded7d8d81d35897/68747470733a2f2f706f7365722e707567782e6f72672f6769726166612f637275642f646f776e6c6f616473)](https://packagist.org/packages/girafa/crud)

Crud
====

[](#crud)

Base module to extend to simplify crud development.

Installation
============

[](#installation)

Composer
--------

[](#composer)

The suggested installation method is via [composer](http://getcomposer.org/):

```
php composer.phar require girafa/crud:dev-master
```

or

1. Add this project in your composer.json:

    ```
    "require": {
        "girafa/crud": "dev-master"
    }
    ```
2. Now tell composer to download Girafa\\Crud by running the command:

    ```
    $ php composer.phar update
    ```

Git Submodule
-------------

[](#git-submodule)

Clone this project into your `./vendor/` directory

```
```sh
cd vendor
git clone https://github.com/girafacomunicacao/girafa-crud.git
```

```

Configuration
=============

[](#configuration)

### Global configuration

[](#global-configuration)

Copy `./vendor/girafa/crud/config/module.config.php` to `./config/autoload/crud.global.php`This configuration parameters applies to all modules that use Crud

### Per module configuration

[](#per-module-configuration)

Add in `module/YourModule/config/config.php` a section like this

```
    'Crud' => array(
        __NAMESPACE__ => array(
            's_indexTitle'      => 'Index page default',
            's_indexTemplate'   => 'crud/index/index',
            's_newTitle'        => 'New page default',
            's_newTemplate'     => 'crud/index/default-form',
            's_editTitle'       => 'Edit page default',
            's_editTemplate'    => 'crud/index/default-form',
            's_detailTitle'     => 'Detail page default',
            's_detailTemplate'  => 'crud/index/detail',
            's_processErrorTitle'       => 'Form errors page default',
            's_processErrorTemplate'    => 'crud/index/default-form',
            's_deleteRouteRedirect'     => 'crud',
            's_processRouteRedirect'     => 'crud',
        )
    )

```

This configuration parameters applies to all controller extending Crud defined in that namespace

### Per controller configuration

[](#per-controller-configuration)

Redefine in your controller parameters you want to edit after call Crud constructor like

```
class IndexController extends \Girafa\Crud\Controller\CrudIndexController {

    public function __construct($I_service, $I_form) {
        $entityName = 'Dog';
        parent::__construct($entityName, $I_service, $I_form);
        $this->s_indexTitle = 'Title specific for this controller';
    }
}

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

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

---

Top Contributors

[![tiagosilver](https://avatars.githubusercontent.com/u/15266358?v=4)](https://github.com/tiagosilver "tiagosilver (10 commits)")

### Embed Badge

![Health badge](/badges/girafa-crud/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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