Skip to content

dimpletz/php-developer

v1.0.0MIT

PHP Developers are a collection of agents that help you generate and maintain unit tests for PHP applications.

PHP Developer v1.0.0

A collection of agents for generating and maintaining comprehensive PHPUnit test suites for PHP applications.

Prerequisites

Installation

Install via the VS Code Chat Plugin Marketplace using the dimpletz/prompts-collection marketplace source and enable the php-developer plugin.

Usage

Open Copilot Chat, select the PHP Unit Test Generator agent, and point it at the file, folder, module, or code selection you want tests for.

# Examples
"Generate PHPUnit tests for UserRepository.php"
"Create unit tests for the app/Services folder"
"Write tests for this Magento 2 observer class"
"Generate tests for this Laravel controller"

Components

PHP Unit Test Generator

An expert PHP unit test generation agent that automatically creates high-quality PHPUnit tests for any PHP codebase. Targets a minimum of 80% code coverage with maintainable, idiomatic test code.

Supported frameworks:

FrameworkNotes
Magento 2Unit, integration, and functional tests
LaravelPHPUnit and Pest
SymfonyPHPUnit with Symfony test utilities
Vanilla PHPStandard PHPUnit

Test coverage includes:

  • Positive paths, negative paths, edge cases, and boundary conditions
  • Dependency injection and IoC container testing
  • PHPUnit mock objects and dependency mocking
  • Testing design patterns (factories, repositories, services)
  • Data providers for parameterized tests
  • Exception testing and error-state coverage

Author

Dimpletz