PHPackages                             shtumi/useful-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. shtumi/useful-bundle

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

shtumi/useful-bundle
====================

Symfony ShtumiUsefulBundle

2.0.x-dev(12y ago)11099.5k↓100%67[23 issues](https://github.com/shtumi/ShtumiUsefulBundle/issues)[2 PRs](https://github.com/shtumi/ShtumiUsefulBundle/pulls)MITJavaScriptPHP &gt;=5.3.2

Since Apr 23Pushed 1y ago14 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

ShtumiUsefulBundle - make typical things easier
===============================================

[](#shtumiusefulbundle---make-typical-things-easier)

ShtumiUsefulBundle provides some useful things that needed almost in every project. It's:

**Form types**:

- [Ajax Autocomplete form type](https://github.com/shtumi/ShtumiUsefulBundle/blob/master/Resources/doc/ajax_autocomplete.rst) (useful when you operate with thousands and hundred thousands records \[for instance: users\])
- [Dependent filtered form type](https://github.com/shtumi/ShtumiUsefulBundle/blob/master/Resources/doc/dependent_filtered_entity.rst) (useful when you need operate dependent entities in one form (for instance: countries/regions))
- [Date range form type](https://github.com/shtumi/ShtumiUsefulBundle/blob/master/Resources/doc/daterange.rst) (allows you select date range with JS calendar and take valid DateRange object)

**[DQL extra functions](https://github.com/shtumi/ShtumiUsefulBundle/blob/master/Resources/doc/dql_functions.rst)**:

- IF
- IFNULL
- ROUND
- DATE\_DIFF

You can use Ajax autocomplete form type as a filter type with [SonataAdminBundle](https://github.com/sonata-project/SonataAdminBundle)

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

[](#installation)

### Add the following lines to your `deps` file and then run `php bin/vendors install`:

[](#add-the-following-lines-to-your--deps-file-and-then-run-php-binvendors-install)

```
[ShtumiUsefulBundle]
    git=https://github.com/shtumi/ShtumiUsefulBundle.git
    target=bundles/Shtumi/UsefulBundle

```

For Symfony 2.0 please use branch 2.0 of ShtumiUsefulBundle:

```
[ShtumiUsefulBundle]
    git=https://github.com/shtumi/ShtumiUsefulBundle.git
    target=bundles/Shtumi/UsefulBundle
    version=origin/2.0

```

You also should install [SonataAdminBundle](https://github.com/sonata-project/SonataAdminBundle) and all dependencies for it.

### Add ShtumiUsefulBundle to your application kernel

[](#add-shtumiusefulbundle-to-your-application-kernel)

```
    // app/AppKernel.php
    public function registerBundles()
    {
        return array(
            // ...
            new Shtumi\UsefulBundle\ShtumiUsefulBundle(),
            // ...
        );
    }

```

### Register the ShtumiUsefulBundle namespace

[](#register-the-shtumiusefulbundle-namespace)

```
    // app/autoload.php
    $loader->registerNamespaces(array(
        'Shtumi'            => __DIR__.'/../vendor/bundles',
        // your other namespaces
    ));

```

### Import routes

[](#import-routes)

// app/config/routing.yml

```
shtumi_useful:
    resource: '@ShtumiUsefulBundle/Resources/config/routing.xml'

```

### Update your configuration

[](#update-your-configuration)

#### Add form theming to twig

[](#add-form-theming-to-twig)

```
twig:
    ...
    form:
        resources:
            - ShtumiUsefulBundle::fields.html.twig

```

Update your configuration in accordance with [using ShtumiUsefulBundle things](https://github.com/shtumi/ShtumiUsefulBundle/blob/master/Resources/doc/index.rst)

### Load jQuery to your views

[](#load-jquery-to-your-views)

```

```

###  Health Score

37

—

LowBetter than 82% of packages

Maintenance23

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.4% 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

Unknown

Total

1

Last Release

4399d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5354e1fd83471cebc82b1209f3ee1a8aefa3f94c16329b29a3777ea612a77008?d=identicon)[Shtumi](/maintainers/Shtumi)

---

Top Contributors

[![shtumi](https://avatars.githubusercontent.com/u/604334?v=4)](https://github.com/shtumi "shtumi (31 commits)")[![AleF87](https://avatars.githubusercontent.com/u/842547?v=4)](https://github.com/AleF87 "AleF87 (5 commits)")[![smoya](https://avatars.githubusercontent.com/u/1083296?v=4)](https://github.com/smoya "smoya (4 commits)")[![mahi1881](https://avatars.githubusercontent.com/u/1658662?v=4)](https://github.com/mahi1881 "mahi1881 (2 commits)")[![raphaelm](https://avatars.githubusercontent.com/u/64280?v=4)](https://github.com/raphaelm "raphaelm (2 commits)")[![mewlabs](https://avatars.githubusercontent.com/u/1019853?v=4)](https://github.com/mewlabs "mewlabs (1 commits)")[![nucleartux](https://avatars.githubusercontent.com/u/199706?v=4)](https://github.com/nucleartux "nucleartux (1 commits)")[![pabloveintimilla](https://avatars.githubusercontent.com/u/31135?v=4)](https://github.com/pabloveintimilla "pabloveintimilla (1 commits)")[![rigosv](https://avatars.githubusercontent.com/u/881687?v=4)](https://github.com/rigosv "rigosv (1 commits)")[![toothfairy](https://avatars.githubusercontent.com/u/725806?v=4)](https://github.com/toothfairy "toothfairy (1 commits)")[![vhpoet](https://avatars.githubusercontent.com/u/686185?v=4)](https://github.com/vhpoet "vhpoet (1 commits)")[![CedCannes](https://avatars.githubusercontent.com/u/2522998?v=4)](https://github.com/CedCannes "CedCannes (1 commits)")[![grifx](https://avatars.githubusercontent.com/u/1662628?v=4)](https://github.com/grifx "grifx (1 commits)")[![inelgnu](https://avatars.githubusercontent.com/u/665908?v=4)](https://github.com/inelgnu "inelgnu (1 commits)")[![maikelohcfg](https://avatars.githubusercontent.com/u/939605?v=4)](https://github.com/maikelohcfg "maikelohcfg (1 commits)")

---

Tags

Ajax Autocomplete form typeDependent filtered form typedaterangeshtumi

### Embed Badge

![Health badge](/badges/shtumi-useful-bundle/health.svg)

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

###  Alternatives

[winzou/state-machine-bundle

Bundle for the very lightweight yet powerful PHP state machine

34010.4M15](/packages/winzou-state-machine-bundle)[stfalcon/tinymce-bundle

This Bundle integrates TinyMCE WYSIWYG editor into a Symfony2 project.

2692.9M24](/packages/stfalcon-tinymce-bundle)[symfony/ai-bundle

Integration bundle for Symfony AI components

30282.3k6](/packages/symfony-ai-bundle)[sylius/inventory-bundle

Flexible inventory management for Symfony applications.

19176.7k4](/packages/sylius-inventory-bundle)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)

PHPackages © 2026

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