madkom/pact-php-client

Client written in PHP for Pact-Mock-Service

0.8.2 2017-03-17 09:04 UTC

This package is not auto-updated.

Last update: 2024-04-13 16:18:30 UTC


README

PHP 7.0 Build Status Coverage Status Latest Stable Version Total Downloads License

What is Pact

Pact is consumer driven contract. Is a way to define contract between consumers and provider.
It help to keep your provider's API compatible with your consumers.

Pact-Php-Client

Is client for pact-mock-service. Which is just implementation of Ruby Pact.
Your tests against provider can be run as part of your Continues Integration system.
For more information about how does Pact works go here pact wiki and here for microservices overview

How to use Pact-Php-Client

Examples can be found at usages catalog. For more information check above links.
If you don't want to host your own pact-mock-service, you can use our docker image (You need to have docker-compose).
To do so from the root catalog type in console docker-compose up -d and start examples php usage/single-interaction.php.

License

The MIT License (MIT)

Copyright (c) 2016 Madkom S.A.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.