To run the php examples, the mock server DLL needs to be built using cargo build
in the rust/libpact_ffi
directory.
- run
composer install
- run consumers
composer consumer-1-matches
composer consumer-1-mismatches
composer consumer-2-matches
composer consumer-2-mismatches
- run provider
composer provider
NOTE: This example needs to run on PHP >= 7.4.
To change the log level, use the LOG_LEVEL
environment variable. I.e., to set
debug level: LOG_LEVEL=debug composer consumer-1-matches