Download the PHP package k2tzumi/laravel-coverage-middleware without Composer

On this page you can find all versions of the php package k2tzumi/laravel-coverage-middleware. 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 laravel-coverage-middleware

test passsed

laravel-coverage-middleware

HTTP middleware to get code coverage of Laravel applications on remote servers

Introduction

The laravel-coverage-middleware library is designed to help developers obtain code coverage when performing API tests on remote Laravel applications. The library provides a middleware that can be used to collect code coverage data during API tests, which can then be used to generate reports and identify areas of the codebase that require further testing.

Requirements

Here are the environment requirements for laravel-coverage-middleware:

Installation

Here are the steps to install laravel-coverage-middleware:

  1. Run the following command to install the library as a development dependency

  2. Run the following command to publish the configuration file of the library:

  3. Run the following command to install the coverage middleware:

Please replace group with the name of the middleware group that you want to include in the coverage report.

Usage

Here are the steps to use laravel-coverage-middleware:

  1. Once the library is installed, start the Laravel application, enable httpRunner tracing in runn, and run the API test.
  2. The coverage data will be collected during the API tests and stored in the storage/coverage directory.
  3. You can use phpcov to generate HTML reports from the coverage files and view them to identify areas of the codebase that require further testing.

Configuration

After installing laravel-coverage-middleware, you can edit the config/coverage.php file to configure the library. The following are the available configuration options:


All versions of laravel-coverage-middleware with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.3|^8.4
laravel/framework Version ^10.0|^11.0|^12.0
phpunit/phpunit Version ^10.0|^11.0|^12.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 k2tzumi/laravel-coverage-middleware contains the following files

Loading the files please wait ....