RiskioFr / tactician-module

Module to integrate Tactician with Zend Framework projects.


Tactician module for Zend Framework

Module to integrate Tactician with Zend Framework projects.

Build Status Latest Stable Version Build Status Total Downloads

Requirements

Installation

Tactician module only officially supports installation through Composer. For Composer documentation, please refer to getcomposer.org.

You can install the module from command line:

$ composer require riskio/tactician-module

Enable the module by adding TacticianModule key to your application.config.php file.

Default configuration

<?php
use League\Tactician\Handler\CommandNameExtractor\ClassNameExtractor;
use League\Tactician\Handler\Locator\InMemoryLocator;
use League\Tactician\Handler\MethodNameInflector\InvokeInflector;

return [
    'tactician' => [
        'handler' => [
            'command_name_extractor' => ClassNameExtractor::class,
            'locator' => InMemoryLocator::class,
            'method_name_inflector' => InvokeInflector::class,
        ],
        'middlewares' => [],
        'command_map' => [],
    ],
];

Testing

$ vendor/bin/phpunit

Credits

License

The MIT License (MIT). Please see License File for more information.

The MIT License (MIT)

Copyright (c) 2017, Riskio

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.
php composer.phar require "riskio/tactician-module"

Require

  • php: ^7.0
  • league/tactician: ^1.0
  • league/tactician-container: ^2.0
  • zendframework/zend-servicemanager: ^3.0

Require Dev

  • phpunit/phpunit: ~6.0