Download the PHP package bberkaysari/laravel-test-generator without Composer

On this page you can find all versions of the php package bberkaysari/laravel-test-generator. 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-test-generator

๐Ÿš€ Laravel Test Generator

CI Tests PHPStan PHP Version Laravel

Production-ready Laravel test generator with 85-90% automation without AI

Generate comprehensive PHPUnit tests for your Laravel application through static code analysis - no AI, no guessing, just reliable test generation from your actual code.

๐Ÿ†• What's New in Latest Version

๐ŸŽฏ Professional Test Quality (NEW!)

๐Ÿ”ง Enhanced Scanner Capabilities (NEW!)

โœจ Features

๐ŸŽฏ Core Capabilities

๐Ÿš€ Enterprise-Scale Support

๐Ÿ” Advanced Analysis

๐Ÿ“ฆ Installation

๐ŸŽฎ Quick Start

Command Line Interface

Generate all tests:

Generate only model tests:

Generate only controller tests:

Generate service/repository tests:

Custom options:

Running Generated Tests with Groups (NEW!)

Run all tests:

Run only service tests:

Run only repository tests:

Run edge case tests:

Exclude incomplete tests:

Run parametrized tests:

Programmatic Usage

๐Ÿ“Š What Gets Generated

Model Tests (8+ tests per model)

Controller Tests (3+ tests per method)

Example Generated Test

โšก Performance Benchmarks

Project Size First Run Cached Run Speedup Memory
Small (10 models, 5 controllers) 100ms 5ms 20x 12 MB
Medium (100 models, 50 controllers) 1s 50ms 20x 128 MB
Large (1000 models, 200 controllers) 10s 500ms 20x 512 MB

Cache Performance (Demo Output):

๐Ÿ”ง CLI Options

Option Short Description Default
--path=PATH -p Laravel project path Current directory
--type=TYPE -t Test type (model, controller, all) all
--output=DIR -o Output directory tests
--force -f Overwrite existing tests false
--no-cache Disable caching false

๐Ÿ“– Usage Examples

Generate Tests for Specific Project

Force Overwrite Existing Tests

Disable Cache for Fresh Analysis

Custom Output Directory

Generate Only Model Tests

๐ŸŽฏ Demo

Run the interactive demo to see all features:

Demo Output:

๐Ÿ—๏ธ Architecture

๐Ÿงช Testing

Current Status: โœ… 69 tests, 193 assertions, 100% passing

๐Ÿ› ๏ธ Development

Running Tests

Code Quality Tools

Current Status: โœ… 145 tests, 394 assertions, 100% passing

Installing Code Coverage Tools

For Xdebug:

For PCOV (faster):

๐Ÿ”’ CI/CD Pipeline

This project includes a complete GitHub Actions workflow:

๐Ÿค Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing)
  3. Write tests for your changes
  4. Ensure all tests pass (composer test)
  5. Commit your changes (git commit -m 'Add amazing feature')
  6. Push to the branch (git push origin feature/amazing)
  7. Open a Pull Request

๐Ÿ“„ License

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

๐Ÿ™ Credits

Created by Berkay Sari

Built with:

๐ŸŒŸ Star History

If you find this project useful, please consider giving it a star! โญ

๐Ÿ“ž Support


Made with โค๏ธ for the Laravel community


All versions of laravel-test-generator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.3|^8.4
illuminate/support Version ^10.0|^11.0|^12.0
nesbot/carbon Version ^2.0|^3.0
nikic/php-parser Version ^4.17|^5.0
symfony/clock Version ^6.0|^7.0|^8.0
symfony/console Version ^6.0|^7.0|^8.0
symfony/finder Version ^6.0|^7.0|^8.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 bberkaysari/laravel-test-generator contains the following files

Loading the files please wait ...