php:make-urls

Generate PHP URL, CQRS message, and handler classes for an entity.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/atournayre/claude-personas --skill php-make-urls
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php:make-urls
Source: https://github.com/atournayre/claude-personas/tree/main/php/skills/make-urls
Command: npx skills add https://github.com/atournayre/claude-personas --skill php-make-urls

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the generation of essential PHP classes for handling URLs, messages, and handlers, streamlining the development of web applications following the CQRS pattern.

Core Features & Use Cases

  • URL Generation Class: Creates a dedicated class for generating URLs related to a specific entity.
  • CQRS Message & Handler: Generates a command query responsibility segregation (CQRS) message and its corresponding handler for entity-specific URL operations.
  • Use Case: When developing a new feature for a Product entity, use this Skill to automatically create ProductUrls.php, ProductUrlsMessage.php, and ProductUrlsMessageHandler.php, ensuring consistent URL generation and message handling.

Quick Start

Use the php:make-urls skill to generate URL classes for the 'Order' entity.

Frequently Asked Questions about php:make-urls

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate PHP CQRS message and handler classes for entity URLs?

Generating PHP CQRS message and handler classes for entity URLs involves creating `Urls.php`, `UrlsMessage.php`, and `UrlsMessageHandler.php` files. This Skill automates that creation using a given entity name and namespace.

How does Symfony URL generation work within a CQRS pattern?

Symfony URL generation within a CQRS pattern uses a dedicated handler class that depends on `UrlGeneratorInterface` and entity repositories. The handler processes a specific message class to produce immutable URL objects for that entity.

Can I use dependency injection with generated CQRS URL handlers in PHP?

Yes, you can use dependency injection with generated CQRS URL handlers in PHP. The generated `UrlsMessageHandler.php` class supports injecting dependencies like `UrlGeneratorInterface` and entity repositories to resolve URLs.

What is the best way to structure immutable URL generation classes for a PHP entity?

The best way to structure immutable URL generation classes for a PHP entity is to separate concerns into a readonly `Urls.php` class, a CQRS `UrlsMessage.php`, and a `UrlsMessageHandler.php` that processes the message.

Do I need Symfony to generate CQRS message handlers for URL operations?

Yes, the generated CQRS message handlers for URL operations rely on Symfony's `UrlGeneratorInterface` for dependency injection. You need this environment to properly resolve the generated URL handler dependencies.