2017 © Pedro Peláez
 

library reconciliation

Reconciliation algorithm on PHP for everyday usage

image

yperevoznikov/reconciliation

Reconciliation algorithm on PHP for everyday usage

  • Friday, October 21, 2016
  • by yperevoznikov
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 14 % Grown

The README.md

Reconciliation algorithm on PHP

Build Status, (*1)

Reconciliation algorithm on PHP language for everyday usage.
Data synchronization (set Reconciliation problem) is the process of establishing consistency among data from a source to a target data storage and vice versa and the continuous harmonization of the data over time.
Data synchronization (Wikiperia), (*2)

Usage example

// Use Package
use YPReconciliation\SetsReconciliation;

// Create Reconciliation Algo Class
$reconciliation = new SetsReconciliation();

// Optionally, it's possible to set custom function to create unique identifier
$reconciliation->setUniqueMaskGetterClosure(function($item) {
    return $item['name'];
});

// Perform action...
$sourceSet = array(array('name' => 1), array('name' => 2));
$targetSet = array(array('name' => 3));
$result = $reconciliation->getReconciliationActions($sourceSet, $targetSet);

// Remove Elements from $targetSet
foreach ($result->getRemoveList() as $item) {
  // remove $item from $targetSet
}

// Add Elements to $targetSet
foreach ($result->getAddList() as $item) {
  // add new $item from $targetSet
}

// Sometimes need to update elements in $targetSet , like so
foreach ($result->getUpdateList() as $item) {
  // update $item in $targetSet
}

The Versions

21/10 2016

dev-master

9999999-dev

Reconciliation algorithm on PHP for everyday usage

  Sources   Download

The Requires

  • php >=5.3

 

26/09 2016

1.0.2

1.0.2.0

Reconciliation algorithm on PHP for everyday usage

  Sources   Download

The Requires

  • php >=5.3

 

26/09 2016

1.0.1

1.0.1.0

Reconciliation algorithm on PHP for everyday usage

  Sources   Download

The Requires

  • php >=5.3

 

26/09 2016

v1.0

1.0.0.0

Reconciliation algorithm on PHP for everyday usage

  Sources   Download

The Requires

  • php >=5.3