2017 © Pedro Peláez
 

library comparator

Provides the functionality to compare PHP values for equality

image

sebastian/comparator

Provides the functionality to compare PHP values for equality

  • Thursday, July 12, 2018
  • by Sebastian
  • Repository
  • 7 Watchers
  • 3176 Stars
  • 78,819,944 Installations
  • PHP
  • 91 Dependents
  • 0 Suggesters
  • 38 Forks
  • 4 Open issues
  • 22 Versions
  • 8 % Grown

The README.md

Latest Stable Version CI Status codecov, (*1)

sebastian/comparator

This component provides the functionality to compare PHP values for equality., (*2)

Installation

You can add this library as a local, per-project dependency to your project using Composer:, (*3)

composer require sebastian/comparator

If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:, (*4)

composer require --dev sebastian/comparator

Usage

<?php
use SebastianBergmann\Comparator\Factory;
use SebastianBergmann\Comparator\ComparisonFailure;

$date1 = new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York'));
$date2 = new DateTime('2013-03-29 03:13:35', new DateTimeZone('America/Chicago'));

$factory = new Factory;
$comparator = $factory->getComparatorFor($date1, $date2);

try {
    $comparator->assertEquals($date1, $date2);
    print "Dates match";
} catch (ComparisonFailure $failure) {
    print "Dates don't match";
}

The Versions

12/07 2018

dev-master

9999999-dev https://github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

12/07 2018

3.0.2

3.0.2.0 https://github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

14/06 2018

3.0.1

3.0.1.0 https://github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

18/04 2018

3.0.0

3.0.0.0 https://github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

01/02 2018

2.1.3

2.1.3.0 https://github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

12/01 2018

2.1.2

2.1.2.0 https://github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

22/12 2017

2.1.1

2.1.1.0 https://github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

03/11 2017

2.1.0

2.1.0.0 https://github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

03/08 2017

2.0.2

2.0.2.0 http://www.github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

11/07 2017

2.0.1

2.0.1.0 http://www.github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

07/03 2017

1.2.x-dev

1.2.9999999.9999999-dev http://www.github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

03/03 2017

2.0.0

2.0.0.0 http://www.github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

29/01 2017

1.2.4

1.2.4.0 http://www.github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

29/01 2017

1.2.3

1.2.3.0 http://www.github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

19/11 2016

1.2.2

1.2.2.0 http://www.github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

17/11 2016

1.2.1

1.2.1.0 http://www.github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

26/07 2015

1.2.0

1.2.0.0 http://www.github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

19/07 2015

1.1.2

1.1.2.0 http://www.github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

29/01 2015

1.1.1

1.1.1.0 http://www.github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

16/11 2014

1.1.0

1.1.0.0 http://www.github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

12/05 2014

1.0.1

1.0.1.0 http://www.github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality

02/05 2014

1.0.0

1.0.0.0 http://www.github.com/sebastianbergmann/comparator

Provides the functionality to compare PHP values for equality

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Bernhard Schussek
by Volker Dusch

compare comparator equality