Download the PHP package mottaviani-dev/laravel-reductor without Composer

On this page you can find all versions of the php package mottaviani-dev/laravel-reductor. 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-reductor

Laravel Reductor

A powerful Laravel package for detecting and reducing test redundancy using machine learning clustering algorithms. Reductor analyzes your test suite to identify similar tests that provide overlapping coverage, helping you maintain a leaner, more efficient test suite.

Features

Installation

  1. Install the package via Composer:

  2. Publish the configuration file:

  3. Run migrations to create the necessary database tables:

  4. Ensure Python 3.8+ is installed with required packages (alpine based images):

Quick Start

1. Generate Coverage Data

First, generate PHPUnit coverage in text format:

2. Ingest Coverage Data

Import the coverage data into Reductor:

This will output a test run ID that you'll use for analysis.

3. Analyze for Redundancy

Run the redundancy detection (K-Means algorithm and Markdown output are defaults):

Usage Examples

Basic Usage with Different Algorithms

Output Formats

Adjusting Similarity Thresholds

Combined Options

Configuration

Edit config/reductor.php to customize default settings:

Understanding the Algorithms

K-means (Default)

DBSCAN

Hierarchical Clustering

Interpreting Results

Redundancy Scores

Priority Levels

Coverage Overlap

Advanced Features

Safety Validation

Reductor automatically prevents merging tests with opposing semantics:

IDF-Weighted Coverage

Lines covered by many tests are weighted less than unique coverage patterns, improving discrimination between tests that share common initialization code.

Dimensionality Reduction

Automatically reduces high-dimensional vectors (640D) to manageable size (128D) while preserving 95%+ variance for accurate clustering.

Troubleshooting

"Pipeline failed" Error

Poor Clustering Results

Example Output (Markdown)

Contributing

Please see CONTRIBUTING.md for details.

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-reductor with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2|^8.3
illuminate/support Version ^9.0|^10.0|^11.0
illuminate/console Version ^9.0|^10.0|^11.0
illuminate/database Version ^9.0|^10.0|^11.0
phpunit/php-code-coverage Version ^10.1|^11.0
czproject/git-php Version ^4.2
symfony/process Version ^6.0|^7.0
symfony/yaml Version ^6.0|^7.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 mottaviani-dev/laravel-reductor contains the following files

Loading the files please wait ...