Download the PHP package crdesign8/laratest-advisor without Composer

On this page you can find all versions of the php package crdesign8/laratest-advisor. 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 laratest-advisor

LaraTestAdvisor

CI Latest Version on Packagist

Ultra-fast, 100% offline, AST-based (Abstract Syntax Tree) static analysis for Laravel/PHP classes that identifies and recommends robust test scenarios.

Unlike automatic generators that suffer from LLM hallucinations and incorrect mocking, LaraTestAdvisor acts as a Test Scenario Advisor. It tells you (or an AI agent) what to test, why to test it, which risk to protect against, and provides the exact anti-hallucination AI prompt signature to create the correct Pest PHP test.


Key Features

Technical Documentation

The advisor's internal architecture, rules engine, risk model, suppressions, and scenario consolidation are documented in docs/architecture.md. The official contract for creating and evolving rules is documented in docs/rules-contract.md.


Installation & Setup

Prerequisites

Step by Step

  1. Clone the project and install dependencies:

  2. Make the CLI executable executable:

Usage

To analyze any class or PHP file from your Laravel application:

1. Default Terminal Output (Styled)

Terminal output:

2. Export as Structured JSON (Per Official Schema)

You can specify a destination file using -o or --output-file:

3. Export Detailed Markdown Report

4. Generate the Ideal Prompt for AI to Create Tests


Configuring Suppressions

LaraTestAdvisor supports three ways to granularly silence warnings or irrelevant scenarios:

1. Native PHP 8 Attribute

Use the #[TestAdvisorIgnore] attribute passing the rule ID at class or method scope:

2. Inline Comment

Insert an inline comment immediately before or inside the method:

3. YAML Configuration Profile (laratest-advisor.yaml)

Create a laratest-advisor.yaml file at the root of your project to disable rules on specific files:


Running the Project's Tests

The official local validation commands are centralized in the Makefile:

Suite organization

To run LaraTestAdvisor's internal quality tests directly with Pest:

All tests validate real engine scenarios against complex fixture files (including compliance tests against the official JSON Schema located at resources/schema/analysis-result.schema.json).


License

This project is licensed under the MIT License - see the LICENSE file for details.

Changelog

See CHANGELOG for the release history.

Contributing

See CONTRIBUTING for development setup and guidelines.


All versions of laratest-advisor with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
nikic/php-parser Version ^5.0
nunomaduro/termwind Version ^2.0
symfony/yaml Version ^7.0
symfony/console Version ^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 crdesign8/laratest-advisor contains the following files

Loading the files please wait ...