PHPackages                             kimerikal/util-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. kimerikal/util-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

kimerikal/util-bundle
=====================

A symfony2 bundle with util classes to use with other bundles and language control.

03572PHP

Since Dec 23Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

util-bundle
===========

[](#util-bundle)

A symfony2 bundle witch provide util classes and language control to use with other bundles and a UtilController that has some alias methods to simplify things.

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

[](#installation)

- Add next line to "require" section in composer.json:

```
    "require": {
       ...
        "kimerikal/util-bundle": "dev-master"
    },

```

- Install the bundle via composer:

```
$ composer update

```

- Add next line to bundles array in app/AppKernel.php:

```
...
public function registerBundles() {
        $bundles = array(
            ...
            new Kimerikal\UtilBundle\KKUtilBundle(),
        );
}
...
```

You're done!

Usage
=====

[](#usage)

- UtilController: To use it just extend from this controller in any controller you want. Example

```
namespace Kimerikal\ExampleBundle\Controller;

// Import UtilController
use Kimerikal\UtilBundle\Controller\UtilController;

class ExampleController extends UtilController {
    ...
}
```

Now you can send an email, add a flash message and use doctrine from your controller like this:

```
public function exampleAction(Request $req) {
    // Send an email.
    $subject = "Sample mail";
    $from = $this->parameter(UtilBundle::DEFAULT_MAIL);
    $to = "example@gmail.com";
    $view = $this->renderView('KKExampleBundle:Mail:info-mail.html.twig',
                    array('content' => 'Sample MailThis is a sample'));
    $this->mailing($subject, $from, $to, $view);
    // Add flash message
    $type = "error";
    $msg = "There was an error...";
    $this->flashMsg($type, $msg);
    // Use doctrine repository
    $this->doctrineRepo('KKExampleBundle:Example')->loadExample();
}
```

- Util Entities: There are several util classes for strings, time, images and browser.

```
// Import StrUtil
use Kimerikal\UtilBundle\Entity\StrUtil;
// Import ImgUtil
use Kimerikal\UtilBundle\Entity\ImgUtil;

class ExampleController extends UtilController {
    ...
    public function saveWhatEver() {
        // Let's create a slug...
        $name = "What Ever's name";
        // Resulting slug would be "what-ever-s-name"
        $slug = StrUtil::slug($name);

        // Resize any Image to a Fixed Size
        ImgUtil::resizeFixedSize($src_file, $dst_file, $dst_width, $dst_height);
    }
    ...
}
```

More info at [Kimerikal](http://www.kimerikal.com)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 95.6% 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/dcd7d502e70bb7ba639e4f8a2ef987b3312ad14531185be5040681a9bce634d6?d=identicon)[josecash](/maintainers/josecash)

---

Top Contributors

[![josecasahe](https://avatars.githubusercontent.com/u/98892505?v=4)](https://github.com/josecasahe "josecasahe (175 commits)")[![josecash](https://avatars.githubusercontent.com/u/9110913?v=4)](https://github.com/josecash "josecash (8 commits)")

### Embed Badge

![Health badge](/badges/kimerikal-util-bundle/health.svg)

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

###  Alternatives

[peridot-php/object-path

A string syntax to fetch values from array and object hierarchies

1053.6k1](/packages/peridot-php-object-path)[magewirephp/magewire-requirejs

A Magento 2 module which makes Magewire compatible with RequireJS based themes

1423.0k20](/packages/magewirephp-magewire-requirejs)

PHPackages © 2026

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