PHPackages                             javihgil/utils-bundle - 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. javihgil/utils-bundle

Abandoned → [javihgil/extra-bundle](/?search=javihgil%2Fextra-bundle)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

javihgil/utils-bundle
=====================

v1.0.1(10y ago)059MITPHP

Since Sep 27Pushed 10y ago1 watchersCompare

[ Source](https://github.com/javihgil/utils-bundle)[ Packagist](https://packagist.org/packages/javihgil/utils-bundle)[ RSS](/packages/javihgil-utils-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (8)Versions (3)Used By (0)

Utils bundle
============

[](#utils-bundle)

Utility classes for Symfony projects

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

[](#installation)

```
composer require 'javihgil/utils-bundle'

```

Configure Bundle
----------------

[](#configure-bundle)

Register the bundle in *app/AppKernel.php*:

```
// app/AppKernel.php
public function registerBundles()
{
    return [
        // ...
        new \Jhg\UtilsBundle\UtilsBundle(),
    ];
}

```

Create form handler
-------------------

[](#create-form-handler)

Handler for creating doctrine entities in a CRUD controller.

**Example**

```
/**
 * @param Request $request
 *
 * @return Response
 */
public function createAction(Request $request)
{
    $element = new Element();

    $form = $this->createForm(new ElementType(), $element);

    if ($this->get('create_form_handler')->process($form, $request)) {
        return $this->redirectToRoute('success_route', ['element', $element->getId()]);
    }

    $viewData = [
        'form' => $form->createView(),
    ];

    return $this->render('ExampleBundle:Element:create.html.twig', $viewData);
}

```

Update form handler
-------------------

[](#update-form-handler)

Handler for updating doctrine entities in a CRUD controller.

**Example**

```
/**
 * @param Element $element
 * @param Request $request
 *
 * @return Response
 */
public function updateAction(Element $element, Request $request)
{
    $form = $this->createForm(new ElementType(), $element);

    if ($this->get('update_form_handler')->process($form, $request)) {
        return $this->redirectToRoute('success_route', ['element', $element->getId()]);
    }

    $viewData = [
        'element' => $element,
        'form' => $form->createView(),
    ];

    return $this->render('ExampleBundle:Element:update.html.twig', $viewData);
}

```

Delete form handler
-------------------

[](#delete-form-handler)

Handler for deleting doctrine entities in a CRUD controller.

**Example**

```
/**
 * @param Element $element
 * @param Request $request
 *
 * @return Response
 */
public function deleteAction(Element $element, Request $request)
{
    $form = $this->createForm(new ElementType(), $element);

    if ($this->get('delete_form_handler')->process($form, $request)) {
        return $this->redirectToRoute('success_route');
    }

    $viewData = [
        'element' => $element,
        'form' => $form->createView(),
    ];

    return $this->render('ExampleBundle:Element:delete.html.twig', $viewData);
}

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~0 days

Total

2

Last Release

3932d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2581053?v=4)[Javi H. Gil](/maintainers/javihgil)[@javihgil](https://github.com/javihgil)

---

Top Contributors

[![javihgil](https://avatars.githubusercontent.com/u/2581053?v=4)](https://github.com/javihgil "javihgil (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/javihgil-utils-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/javihgil-utils-bundle/health.svg)](https://phpackages.com/packages/javihgil-utils-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M386](/packages/easycorp-easyadmin-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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