PHPackages                             simplethings/distribution-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. simplethings/distribution-bundle

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

simplethings/distribution-bundle
================================

This bundles ships convenience methods, helpers, utils and a simple runtime admin generator based on the Sensio CodeGenerators.

91951PHP

Since Sep 4Pushed 12y ago2 watchersCompare

[ Source](https://github.com/simplethings/SimpleThingsDistributionBundle)[ Packagist](https://packagist.org/packages/simplethings/distribution-bundle)[ RSS](/packages/simplethings-distribution-bundle/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

SimpleThings Distribution Bundle
================================

[](#simplethings-distribution-bundle)

Repository Service Detector
---------------------------

[](#repository-service-detector)

The bundle ships a dependency injection extension that automatically detects services for the repositories of Doctrine ORM entities. The convention for registration is '{bundle\_alias}.repository.{entity}', everything in lowercase.

Controller Utils
----------------

[](#controller-utils)

The service `simple_things.distribution.controller_utils` implements all the methods that the Base Controller of the Framework Bundle has with the following exceptions:

```
* No access to the container possible through `has()` and `get()`
* Added method `getRestView()` to access the fos_rest.view service if defined.
* Added methods `isPut()`, `isPost()`, `isDelete()` and `isXmlHttpRequest()`.
* Added methods `getUser()` and `isGranted($attributes, $object = null)` that checks for permissions
* Added methods for throwing more http related exceptions
* Added method `getSession()`
* Added method `getLogger()`

```

Controller
----------

[](#controller)

By Symfony2 default controllers are not service and services are grabbed through a service-locator approach by directly accessing the Symfony DI Container. This is very convenient, but leads to hard to maintain code in the long run.

This bundle ships a SimpleThings\\DistributionBundle\\Controller\\Controller that is automatically registered as a service based on the "{bundle\_alias}.controller.{controller\_name}" convention. This controller is automatically injected the Controller#utils variable as the controller utils service.

For simplicity there is also Controller#\_\_call implemented that delegates to the utils service for as much API compability as possible to the default controller.

```
use SimpleThings\DistributionBundle\Controller\Controller;

/**
 * Controller to access jira instances through a HTTP-JSON interface
 *
 * @Extra\Route(service="whitewashing.controller.jira")
 */
class JiraController extends Controller
{
    private $jiraFactory;

    public function __construct($jiraFactory)
    {
        $this->jiraFactory = $jiraFactory;
    }

    /**
     * @Extra\Route("/jira/projects", name="ww_jira_projects")
     * @Extra\Method("GET")
     */
    public function projectsAction(Request $request)
    {
    }
}

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.2% 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/892698bb1d3f6dae0e3a44abe3e26920ddb4eb000c6c583c87b4db5e5027e166?d=identicon)[beberlei](/maintainers/beberlei)

![](https://avatars.githubusercontent.com/u/470138?v=4)[David Badura](/maintainers/DavidBadura)[@DavidBadura](https://github.com/DavidBadura)

![](https://www.gravatar.com/avatar/9977780b392581daed6c7dd1a49ead2d3a9b0af03fa1bd174783fd293f6b9afe?d=identicon)[tobias.olry](/maintainers/tobias.olry)

---

Top Contributors

[![beberlei](https://avatars.githubusercontent.com/u/26936?v=4)](https://github.com/beberlei "beberlei (18 commits)")[![DavidBadura](https://avatars.githubusercontent.com/u/470138?v=4)](https://github.com/DavidBadura "DavidBadura (8 commits)")

### Embed Badge

![Health badge](/badges/simplethings-distribution-bundle/health.svg)

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

###  Alternatives

[airesvsg/acf-to-rest-api-recursive

Get ACF fields recursively

442.5k](/packages/airesvsg-acf-to-rest-api-recursive)

PHPackages © 2026

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