madkom / pact-php-client
Client written in PHP for Pact-Mock-Service
Installs: 14 823
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 7
Forks: 2
Open Issues: 1
Requires
- guzzlehttp/psr7: ^1.2.2
- php-http/httplug: ^1.0.0
- psr/http-message: ^1.0
Requires (Dev)
- henrikbjorn/phpspec-code-coverage: dev-master
- php-http/guzzle6-adapter: ^1.0.0
- phpspec/phpspec: ^2.4.1
- phpunit/php-code-coverage: ^3.0
- phpunit/phpcov: ^3.0.0
- phpunit/phpunit: ^5.2.4
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2024-10-26 18:44:12 UTC
README
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.