2017 © Pedro Peláez
 

library aggregator

collect and aggregate data for statistical analysis

image

dwo/aggregator

collect and aggregate data for statistical analysis

  • Monday, November 14, 2016
  • by dave
  • Repository
  • 1 Watchers
  • 0 Stars
  • 198 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

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

Aggregator

collect, group & aggregate data, (*2)

$collector = new Collector(array('country'));
$collector->addEntry(['country' => 'DE', 'counts'=>1]);
$collector->addEntry(['country' => 'DE', 'counts'=>2]);
$collector->addEntry(['country' => 'AT', 'counts'=>2]);
$collector->addEntry(['country' => 'AT', 'counts'=>3]);

$aggregationGroup = Aggregator::aggregate($collector);

print_r($aggregationGroup->toArray());
Array (
    [DE] => Array (
        [country] => DE
        [counts] => 3
    )
    [AT] => Array (
        [country] => AT
        [counts] => 5
    )
)

Merger

merge two arrays, (*3)

$origin = ['counts' => 1];
$merge = ['counts' => 2];

Merger::merge($origin, $merge);

print_r($origin);
Array
(
    [counts] => 3
)

The Versions

14/11 2016

dev-master

9999999-dev https://github.com/davewwww

collect and aggregate data for statistical analysis

  Sources   Download

MIT

The Requires

 

The Development Requires

analysis statistic aggregate collect

14/11 2016

v1.3.3

1.3.3.0 https://github.com/davewwww

collect and aggregate data for statistical analysis

  Sources   Download

MIT

The Requires

 

The Development Requires

analysis statistic aggregate collect

10/11 2016

v1.3.2

1.3.2.0 https://github.com/davewwww

collect and aggregate data for statistical analysis

  Sources   Download

MIT

The Requires

 

The Development Requires

analysis statistic aggregate collect

01/11 2016

v1.3.1

1.3.1.0 https://github.com/davewwww

collect and aggregate data for statistical analysis

  Sources   Download

MIT

The Requires

 

The Development Requires

analysis statistic aggregate collect

16/09 2016

v1.3.0

1.3.0.0 https://github.com/davewwww

collect and aggregate data for statistical analysis

  Sources   Download

MIT

The Requires

 

The Development Requires

analysis statistic aggregate collect

03/05 2016

v1.2.2

1.2.2.0 https://github.com/davewwww

collect and aggregate data

  Sources   Download

MIT

The Requires

 

The Development Requires

aggregate collect

22/10 2015

v1.2.1

1.2.1.0 https://github.com/davewwww

collect and aggregate data

  Sources   Download

MIT

The Requires

 

The Development Requires

aggregate collect

12/10 2015

v1.2.0

1.2.0.0 https://github.com/davewwww

collect and aggregate data

  Sources   Download

MIT

The Requires

 

The Development Requires

aggregate collect

29/09 2015

v1.1.0

1.1.0.0 https://github.com/davewwww

collect and aggregate data

  Sources   Download

MIT

The Requires

 

The Development Requires

aggregate collect

23/09 2015

v1.0.0

1.0.0.0 https://github.com/davewwww

collect and aggregate data

  Sources   Download

MIT

The Requires

 

The Development Requires

aggregate collect