PackageTrack
Sign in Get early access

donatj/mock-webserver

Simple mock web server for unit testing

v2.10.0 2.8M downloads/mo #3320 most downloaded on Packagist donatj/mock-webserver

What this package is like to depend on

Last release 6 months ago

20 Feb 2026

Release timing varies

gaps range from 2 weeks to 1.4 years

Some releases are documented

notes for 7 of 25 stable releases

Nothing withdrawn

no release was ever pulled

9 years old

28 releases · first in 2017

2 releases in the last 12 months

see the full history below

Release timeline

28 releases · Apr 2017 to Feb 2026
2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 28
  1. v2.10.0 20 Feb 2026
    Release notes

    What's Changed

    Notice: PHP 7.2 is now the minimum supported version because of a vulnerability with older versions of PHPUnit.

    See: CVE-2026-24765 / GHSA-vvj3-c3rp-c85p for more information.

    Fixes

    • Bug where if PHP itself was not in the PATH of the running PHP server process, it would fail to start with a message that the port might not be open. This became a major issue with macOS 26.3

    • Bump actions/checkout from 5 to 6 by @dependabot[bot] in #83
    • Upgrade PHPUnit, increase minimum PHP to 7.2 by @donatj in #86
    • Use PHP_BINARY for server command execution by @donatj in #85

    Full Changelog: v2.9.0...v2.10.0

    Open source →
  2. v2.9.0 04 Nov 2025
    Release notes

    Fixes

    #81 - Nested ResponseByMethod does not work with ResponseStack in sequential requests by @juslintek

    What's Changed

    • Add PHP 8.5 to CI workflow PHP versions by @donatj in #79
    • Bump actions/checkout from 4 to 5 by @dependabot[bot] in #80
    • Make ResponseByMethod respect sub MultiResponseInterfaces by @donatj in #82

    Full Changelog: v2.8.0...v2.9.0

    Open source →
  3. v2.8.0 26 Jun 2025
    Release notes

    Minor BC Break

    The hashes generated by donatj\MockWebServer\Response::getRef have changed.

    While this value was generally for internal use, it was not marked as such so this is a breaking change.

    What's Changed

    • Do not crash with binary response body by @jtojnar in #75

    New Contributors

    Full Changelog: v2.7.3...v2.8.0

    Open source →
  4. v2.7.3 09 Jun 2025

    Nothing published for this version

  5. v2.7.2 22 Jan 2024
    Release notes

    What's Changed


    • Update PHP to 8.3 - ci.yml by @donatj in #65
    • Update PHP to 8.3 - cover.yml by @donatj in #64
    • Update PHP to 8.3 - lint.yml by @donatj in #66
    • Update corpus/coding-standard requirement from ^0.6.0 || ^0.7.0 to ^0.6.0 || ^0.8.0 by @dependabot in #63

    Full Changelog: v2.7.1...v2.7.2

    Open source →
  6. v2.7.1 30 Oct 2023

    Nothing published for this version

  7. v2.7.0 07 Sep 2023
    Release notes

    What's Changed

    Summary

    DelayedResponse now implements InitializingResponseInterface to enable support for sub-responses that implement InitializingResponseInterface - Thanks @Jarlakxen

    Massively improved test coverage.

    PRs

    • Improve test coverage by @donatj in #55
    • Update corpus/coding-standard requirement from ^0.6.0 to ^0.6.0 || ^0.7.0 by @dependabot in #51
    • Add DelayResponse support to ResponseStack by @Jarlakxen in #56
    • Improve test coverage of DelayedResponse by @donatj in #57

    New Contributors

    Full Changelog: v2.6.2...v2.7.0

    Open source →
  8. v2.6.3 30 Oct 2023

    Nothing published for this version

  9. v2.6.2 03 Jul 2023
    Release notes

    Fixes a regression where the path to the server script was not being escaped, causing problems if there was a space anywhere in the path.

    What's Changed

    Full Changelog: v2.6.1...v2.6.2

    Open source →
  10. v2.6.1 28 Nov 2022
    Release notes

    What's Changed

    • Replaced STDIN constant with php://stdin by @tuutti in #48
    • Fix up the descriptor handling a pinch by @donatj in #49

    New Contributors

    Full Changelog: v2.6.0...v2.6.1

    Open source →
  11. v2.6.0 25 Nov 2022

    Nothing published for this version

  12. v2.5.0 17 Jul 2022

    Nothing published for this version

  13. v2.4.1 19 Jan 2022

    Nothing published for this version

  14. v2.4.0 30 Aug 2021

    Nothing published for this version

  15. v2.3.0 01 Jun 2021

    Nothing published for this version

  16. v2.2.0 02 Dec 2020

    Nothing published for this version

  17. v2.1.1 08 May 2020

    Nothing published for this version

  18. v2.1.0 20 Oct 2019

    Nothing published for this version

  19. v2.0.0 27 Mar 2018

    Nothing published for this version

  20. v1.0.0 01 Dec 2017

    Nothing published for this version

  21. v1.0.0-beta.3 01 Dec 2017 pre-release

    Nothing published for this version

  22. v1.0.0-beta.2 07 Nov 2017 pre-release

    Nothing published for this version

  23. v1.0.0-beta 07 Nov 2017 pre-release

    Nothing published for this version

  24. v0.5.0 06 Nov 2017

    Nothing published for this version

  25. v0.4.1 02 Nov 2017

    Nothing published for this version

  26. v0.4.0 01 Jun 2017

    Nothing published for this version

  27. v0.2.0 25 Apr 2017

    Nothing published for this version

  28. v0.1.0 25 Apr 2017

    Nothing published for this version

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