2017 © Pedro Peláez
 

library equatable

Equatable objects and collections in PHP

image

f500/equatable

Equatable objects and collections in PHP

  • Thursday, June 14, 2018
  • by jaspernbrouwer
  • Repository
  • 2 Watchers
  • 0 Stars
  • 412 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 32 % Grown

The README.md

F500 \ Equatable

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

Equatable objects and collections in PHP., (*2)

We reach a limitation in PHP when we want to compare objects in such a way that == yields incorrect results. We often overcome this limitation by implementing a method like equals($other) encapsulating our specialized behaviour. This library provides an interface for this., (*3)

We hit secondary problems when we try to work with these objects, especially when dealing with arrays of them. Functions like in_array() and array_search() don't use our specialized equals() method, so they in turn yield incorrect results. To overcome these problems, this library provides a map (ordered dictionary-style collection) and a vector (stack-like collection). These are immutable and final, meant to replace normal arrays., (*4)

Authored by Jasper N. Brouwer., (*5)

Under the collective flag of Future500 B.V., (*6)

Installation

composer.phar require f500/equatable

License

The MIT License (MIT), (*7)

The Versions

14/06 2018

dev-master

9999999-dev

Equatable objects and collections in PHP

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Jasper N. Brouwer

collection collections equals equatable equal

31/03 2016

v1.3.0

1.3.0.0

Equatable objects and collections in PHP

  Sources   Download

MIT

The Development Requires

by Jasper N. Brouwer

collection collections equals equatable equal

31/03 2016

v1.2.1

1.2.1.0

Equatable objects and collections in PHP

  Sources   Download

MIT

The Development Requires

by Jasper N. Brouwer

collection collections equals equatable equal

31/03 2016

v1.2.0

1.2.0.0

Equatable objects and collections in PHP

  Sources   Download

MIT

The Development Requires

by Jasper N. Brouwer

collection collections equals equatable equal

25/03 2016

v1.1.0

1.1.0.0

Equatable objects and collections in PHP

  Sources   Download

MIT

The Development Requires

by Jasper N. Brouwer

collection collections equals equatable equal

25/03 2016

v1.0.0

1.0.0.0

Equatable objects and collections in PHP

  Sources   Download

MIT

The Development Requires

by Jasper N. Brouwer

collection collections equals equatable equal