PHPackages                             ferodss/tactician-pimple-service-provider - 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. ferodss/tactician-pimple-service-provider

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ferodss/tactician-pimple-service-provider
=========================================

Pimple Tactician service provider

014PHP

Since Jan 29Pushed 10y agoCompare

[ Source](https://github.com/ferodss/tactician-pimple-service-provider)[ Packagist](https://packagist.org/packages/ferodss/tactician-pimple-service-provider)[ RSS](/packages/ferodss-tactician-pimple-service-provider/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Tactician Pimple Service Provider
=================================

[](#tactician-pimple-service-provider)

[![Build Status](https://camo.githubusercontent.com/310e95d015b17e128acc2ac677a0d26e2c7c2df9fd38b7fbdd29b55b2f2224d9/68747470733a2f2f7472617669732d63692e6f72672f6665726f6473732f74616374696369616e2d70696d706c652d736572766963652d70726f76696465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ferodss/tactician-pimple-service-provider)[![License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](https://github.com/ferodss/tactician-pimple-service-provider#licence)

Provides [Tactician](https://github.com/thephpleague/tactician/) as service to [Pimple](https://github.com/silexphp/Pimple) container.

Basesd on [Atriedes Silex service provider](https://github.com/Atriedes/tactician-service-provider) and [official tactician bundle](https://github.com/thephpleague/tactician-bundle)

Requirements
------------

[](#requirements)

- PHP &gt;= 5.6
- Pimple &gt;= 3.0
- Tactician &gt;= 1.0

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

[](#installation)

`composer require ferodss/tactician-pimple-service-provider`

Usage
-----

[](#usage)

#### Register Tactician service provider

[](#register-tactician-service-provider)

```
$container->register(new TacticianServiceProvider());
```

#### Middlewares

[](#middlewares)

By default, the only Middleware enabled is the Command Handler support which will be automatically pushed to the end of middlewares array.

You can add your own middlewares using `tactician.middlewares` option.

```
$container->register(new TacticianServiceProvider(), [
    'tactician.middlewares' => [
        $container['tactician.middleware.locking'],
    ],
]);
```

As Tactician provides only `LockingMiddleware` built in, there is just `tactician.middleware.locking` registered and ready to use on container.

#### Handler method

[](#handler-method)

Handler method inflector is registered as `tactician.inflector` option. Available options are `class_name`, `class_name_without_suffix`, `invoke` or `handle`. Default to `handle`

See more about [inflectors](https://tactician.thephpleague.com/tweaking-tactician/)

#### Configuring command handlers

[](#configuring-command-handlers)

A command handle MUST be registered as `app.command._handler`, so if you have a command called `RegisterUserCommand` you probably have a `RegisterUserHandler` which must be registered as `app.command.register_user_handler`

Licence
=======

[](#licence)

Copyright (c) 2016 Felipe Rodrigues

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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://avatars.githubusercontent.com/u/307863?v=4)[Felipe Rodrigues](/maintainers/ferodss)[@ferodss](https://github.com/ferodss)

### Embed Badge

![Health badge](/badges/ferodss-tactician-pimple-service-provider/health.svg)

```
[![Health](https://phpackages.com/badges/ferodss-tactician-pimple-service-provider/health.svg)](https://phpackages.com/packages/ferodss-tactician-pimple-service-provider)
```

###  Alternatives

[asper/cakephp-enum-behavior

Introduces an alternative way to support some ENUM types in CakePHP

101.9k](/packages/asper-cakephp-enum-behavior)

PHPackages © 2026

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