Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: psr-mock/http-message-implementation
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.1
Choose a base ref
...
head repository: psr-mock/http-message-implementation
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.x
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Mar 5, 2024

  1. docs: update library description

    Signed-off-by: Evan Sims <[email protected]>
    evansims authored Mar 5, 2024
    Copy the full SHA
    c112876 View commit details
  2. chore: update license copyright

    Signed-off-by: Evan Sims <[email protected]>
    evansims authored Mar 5, 2024
    Copy the full SHA
    8a91313 View commit details
Showing with 10 additions and 2 deletions.
  1. +1 −1 LICENSE.md
  2. +9 −1 README.md
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 PSR Mock Components
Copyright (c) 2024 Evan Sims

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
Lightweight PSR-7 HTTP Message implementation provider tailored to simplify mocked testing.
**Lightweight mocking library for [PSR-7 HTTP Message](https://www.php-fig.org/psr/psr-15/) implementations, tailor-made to help you create test suites that are easier to write and maintain.**

[![codecov](https://img.shields.io/codecov/c/github/psr-mock/http-message-implementation)](https://codecov.io/gh/psr-mock/http-message-implementation) [![packagist](https://img.shields.io/packagist/dt/psr-mock/http-message-implementation)](https://packagist.org/packages/psr-mock/http-message-implementation) [![status](https://img.shields.io/github/checks-status/psr-mock/http-message-implementation/1.x)]() [![license](https://img.shields.io/github/license/psr-mock/http-message-implementation)]()

This library is primarily intended for use in libraries like SDKs that consume PSR implementations without requiring hard dependencies on specific libraries. The library mocks a real-world implementation and strictly adheres to PSR specifications, enabling you to create test suites that are easier to write and maintain. The library also exposes a robust developer API to help you debug and fix test failures substantially faster.

This package is part of the [PSR Mock](https://github.com/psr-mock) suite of mocking libraries.

## Requirements

- PHP 8.1+
- Composer 2.0+

## Installation

```bash
composer require --dev psr-mock/http-message-implementation
```

Only install this library as a development dependency (`--dev`).
It's not built for use in production environments.

---

This library is not produced or endorsed by, or otherwise affiliated with, the PHP-FIG.