Download the PHP package bigfoot90/phpacto without Composer

On this page you can find all versions of the php package bigfoot90/phpacto. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phpacto

PHPacto

Contract testing solution for your API's and microservices

If you want to know more about Contract Testing please read more here and here.

License Build Status CodeCov Scrutinizer Quality Score Codacy Quality Grade Latest Stable Version Total Downloads

Docker Build Status Docker Image Size Docker Pulls Docker Stars

DISCLAIMER: This is a work in progress. The code can be subject to any changes without BC until the release version 1.0.0. Please use the issue tracker to report any enhancements or issues you encounter.

You can find some contract examples in examples directory.

Usage standalone CLI

First of all clone this repository git clone [email protected]:PHPacto/PHPacto.git and install vendors with composer composer install.

Validate

Validate your contracts with

cURL command generator

Generate cURL commands from contracts with

SUGGESTION: Can use phpdotenv to load environment variables from file.

Usage with Docker

Validate

Validate your contracts with

cURL command generator

Generate cURL commands from contracts with

Server Mock

See https://github.com/PHPacto/mock-server

Mock Proxy Recorder

See https://github.com/PHPacto/recorder

Testing your application

Compatibility table PHPacto PHP PHPUnit Guzzle Symfony Serializer
0.5.4 >=7.2 ^7.0||^8.0||^9.0 >=5.3.1 >=3.3
1.0.0 >=8.2 ^7.0||^8.0||^9.0 >=6.0 >=7.0

If your project satisfies these requirements, you can run composer require --dev bigfoot90/phpacto and test your contracts with phpunit, else you need to run contracts testing with PHPacto's CLI wich is slower but works with any kind of application.

Integration with PHPUnit

If your test ends with too much verbose tracelog maybe your TestCase is not extending from Bigfoot\PHPacto\Test\PHPUnit\PHPactoTestCase, so add this line in your setUp method:

See this Gist https://gist.github.com/bigfoot90/d4f146bacad359329d219a804f6cd12a There are two different test files ConsumerTest.php and ProviderTest.php

Mastering with PHPacto contract Rules

Read the dedicated page here

Contributing

Feel free to contribute by opening a pull request. Bug fixes or feature suggestions are always welcome.


All versions of phpacto with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
http-interop/http-factory-discovery Version ^1.5
symfony/console Version >=2.5
symfony/finder Version >=2.1
symfony/routing Version >=2.1
symfony/serializer Version >=6.4
symfony/serializer-pack Version *
symfony/yaml Version >=2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bigfoot90/phpacto contains the following files

Loading the files please wait ....