PackageTrack
Sign in Get early access

hamcrest/hamcrest-php

This is the PHP port of Hamcrest Matchers

v3.0.0 533M downloads/mo #120 most downloaded on composer hamcrest/hamcrest-php

What this package is like to depend on

Last release 5 months ago

17 Mar 2026

Release timing varies

gaps range from 4 months to 4.8 years

Most releases are documented

notes for 8 of 10 stable releases

Nothing withdrawn

no release was ever pulled

13 years old

10 releases · first in 2013

1 release in the last 12 months

see the full history below

Release timeline

10 releases · Jun 2013 to Mar 2026
2014 2016 2018 2020 2022 2024 2026
Release Pre-release

Releases

latest 10
  1. v3.0.0 17 Mar 2026
    Release notes

    What's Changed

    • Solve the risky test warnings in PHPUnit by @aik099 in #89
    • Add missing test for StringDescription:: toString by @pscheit in #90
    • Add missing php extensions to the composer.json by @pscheit in #91
    • Fix underscores to namespaces in README by @petemcfarlane in #56
    • Improve docs to avoid Risky test warnings by @aik099 in #94
    • Fix HasToString description by @pscheit in #93
    • Add native typhints to all hamcrest classes (+ install phpstan) by @pscheit in #88
    • Update readme link for renamed action by @pscheit in #101
    • ci: Add testrun for PHP 8.5 by @Chris53897 in #102

    New Contributors

    Full Changelog: v2.1.1...v2.1.2

    Open source →
  2. v2.1.1 30 Apr 2025
    Release notes

    What's Changed

    • fix implicitly nullable via default value null for PHP-8.4 by @txdFabio in #85

    New Contributors

    Full Changelog: v2.1.0...v2.1.1

    Open source →
    Release notes
    • Fix implicitly nullable via default value null for PHP 8.4 (#85)
    Open source →
  3. v2.1.0 29 Apr 2025
    Release notes

    Drops support for PHP <=7.3

    Open source →
    Release notes
    • Dropped support for PHP <=7.3
    Open source →
  4. v2.0.1 09 Jul 2020
    Release notes
    • Added support for PHP 8
    Open source →
    Release notes
    • Added support for PHP 8
    Open source →
  5. v2.0.0 20 Jan 2016
    Release notes

    Merge pull request #30 from spekulatius/patch-1

    updating badges

    Open source →
  6. v1.2.2 11 May 2015
    Release notes
    • Adds more protection against double inclusion of functions in the global namespace.
    Open source →
  7. v1.2.1 20 Jan 2015

    Nothing published for this version

  8. v1.2.0 25 Sep 2014
    Release notes

    added loading of functions with composer, improved travis and README …

    Open source →
  9. v1.1.1 16 Sep 2013

    Nothing published for this version

  10. v1.1.0 01 Jun 2013
    Release notes

    Issues Fixed: 121, 138, 147

    • Added non-empty matchers to complement the emptiness-matching forms.

      • nonEmptyString()
      • nonEmptyArray()
      • nonEmptyTraversable()
    • Added ability to pass variable arguments to several array-based matcher factory methods so they work like allOf() et al.

      • anArray()
      • arrayContainingInAnyOrder(), containsInAnyOrder()
      • arrayContaining(), contains()
      • stringContainsInOrder()
    • Matchers that accept an array of matchers now also accept variable arguments. Any non-matcher arguments are wrapped by IsEqual.

    • Added noneOf() as a shortcut for not(anyOf()).

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive