2017 © Pedro Peláez
 

library statistico-bundle

image

fieg/statistico-bundle

  • Monday, March 5, 2018
  • by fieg
  • Repository
  • 1 Watchers
  • 0 Stars
  • 35,801 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

StatisticoBundle

Wrapper bundle for the Statistico library., (*1)

Build Status Code Coverage Scrutinizer Code Quality, (*2)

Installation

Using composer:, (*3)

composer require fieg/statistico-bundle:dev-master

Add to AppKernel.php:, (*4)

$bundles = [
  new Fieg\StatisticoBundle\FiegStatisticoBundle(),
];

Configuration in app/config/config.yml:, (*5)

fieg_statistico:
  driver:
    redis:
      client: 'your_redis_service'

Usage

Inject statistico into some service:, (*6)

some_service:
    class: Acme\SomeService
    arguments: [@statistico]

Usage:, (*7)

namespace Acme;

class SomeService
{
    public function __construct(Statistico $statistico)
    {
        $this->statistico = $statistico;
    }

    public function someAction()
    {
        $this->statistico->increment('some.statistic.indentitier');  // increases the statistic with 1
    }
}

The Versions

05/03 2018

dev-fieg-patch-1

dev-fieg-patch-1

  Sources   Download

MIT

The Requires

 

The Development Requires

05/03 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

05/03 2018

3.0

3.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

19/10 2015

2.0

2.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

19/10 2015

1.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires