Download the PHP package martinsr/phiremock-codeception-extension-laravel-11 without Composer

On this page you can find all versions of the php package martinsr/phiremock-codeception-extension-laravel-11. 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 phiremock-codeception-extension-laravel-11

phiremock-codeception-extension

Codeception extension to make working with Phiremock Server even easier. It allows to start a Phiremock Server before a suite is executed and stop it when the suite ends.

Latest Stable Version Build Status Scrutinizer Code Quality Monthly Downloads

Installation

Composer:

Optionally, you can install Phiremock Server in case you want to have it between your dependencies. If not, you need to specify the path to phiremock in the configuration.

Phiremock server has been made an optional dependency in case you want to run it from a phar file, a global composer dependency or in a docker container, and not have it as a project dependency.

Configuration

Note: Since Codeception version 2.2.7, extensions configuration can be added directly in the suite configuration file. That will avoid phiremock to be started for every suite.

Parameters

listen

Specifies the interface and port where phiremock must listen for requests.

Default: 0.0.0.0:8086

bin_path

Path where Phiremock Server's "binary" is located. You can, for instance, point to the location of the phar in your file system.

Default: codeception_dir/../vendor/bin/phiremock

logs_path

Path where to write the output.

Default: codeception's tests output dir

debug

Whether to write debug data to log file.

Default: false

start_delay

Time to wait after Phiremock Server is started before running the tests (used to give time to Phiremock Server to boot)

Default: 0

wait_until_ready

This is more robust alternative to start_delay. It will check if Phiremock Server is actually running before running the tests. Note: it depends on Phiremeock Client to be installed via composer (it is used to check the status of Phiremock Server).

Default: false

wait_until_ready_timeout

This will be used only if wait_until_ready is set to true. You can specify after how many seconds it will stop checking if Phiremock Server is running.

Default: 30

expectations_path

Specifies a directory to search for json files defining expectations to load by default.

Default: codecption_dir/_expectations

certificate

Path to a certificate file to allow phiremock-server to listen for secure https connections.

Default: null. Meaning phiremock will only listen on unsecured http connections.

certificate-key

Path to the certificate key file.

Default: null.

cert-passphrase

Path to the certificate passphrase used to encrypt the certificate (only needed if encrypted).

Default: null. Meaning no decryption based in passphrase will be performed.

suites

Specifies a list of suites for which the phiremock-server must be executed.

Default: [] Empty array, meaning that phiremock will be executed for each suite.

extra_instances

Allows to specify more instances of phiremock-server to run. This is useful if you want, for instance, run one instance listening for http and one listening for https connections. Each instance has its own configuration, and can separately run for different suites.

Default: [] Empty array, meaning that no extra phiremock-server instances are configured.

Example:

server_factory

Specifies a Factory class extending \Mcustiel\Phiremock\Server\Factory\Factory. Useful if you want to provide your own PSR. This works only if you install phiremock as a local dependency required in your composer file.

Default: default

Example: If this is in your composer.json:

The you can create a factory as follows:

and in the extension config provide the fully qualified namespace to that class:

See also:


All versions of phiremock-codeception-extension-laravel-11 with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
codeception/codeception Version ^5.0
symfony/process Version ^v7.0.4
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 martinsr/phiremock-codeception-extension-laravel-11 contains the following files

Loading the files please wait ....