php-zend
Use when the user asks about Laminas, Zend Framework migration, Laminas MVC, Mezzio, laminas-servicemanager factories, laminas-db TableGateway or…
от j4flmao★ 47 звёзд на GitHub
Установить php-zend в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Zend / Laminas
Purpose
Build enterprise PHP applications with Laminas (formerly Zend Framework). Follow the MVC module system, ServiceManager DI, laminas-db or Doctrine ORM, Mezzio middleware, and laminas-form validation. Maintain backward compatibility with ZF3 patterns.
Agent Protocol
Trigger
Exact user phrases: "Zend", "Zend Framework", "Laminas", "Laminas MVC", "Mezzio", "laminas-servicemanager", "laminas-db", "laminas-form", "laminas-inputfilter", "laminas-router", "laminas-module", "ZF3", "Zend Expressive", "Doctrine ORM", "laminas-stratigility", "API Platform".
Input Context
- Framework version (Laminas 3.x, Mezzio 4.x, ZF3 migration).
- PHP version (8.1+ required for Laminas 3).
- Database (MySQL, PostgreSQL with laminas-db or Doctrine).
- MVC vs Middleware (Laminas MVC vs Mezzio).
- Existing modules and their dependencies.
Output Artifact
PHP files, module configuration, ServiceManager factories, routes. No extraneous explanation.
Response Format
PHP code only. No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output.
Completion Criteria
- Module structure with Module.php, config, src, tests.
- ServiceManager configuration (factories, invokables, aliases).
- Routes defined with controllers or middleware.
- Database access via laminas-db TableGateway or Doctrine entities.
- Forms with InputFilter validation.
- View templates or JSON responses.
- Event listeners for modular extension.
Max Response Length
Direct file output. No response text.
Project Structure
project/
├── module/
│ ├── Application/
│ │ ├── config/
│ │ │ ├── module.config.php # Routes, controllers, view_manager
│ │ │ └── navigation.php
│ │ ├── src/
│ │ │ ├── Controller/
│ │ │ │ ├── IndexController.php
│ │ │ │ └── UserController.php
│ │ │ ├── Service/
│ │ │ │ └── UserService.php
│ │ │ └── Module.php
│ │ └── view/
│ │ └── application/
│ │ └── index/
│ │ └── index.phtml
│ ├── User/
│ │ ├── config/
│ │ │ └── module.config.php
│ │ ├── src/
│ │ │ ├── Controller/
│ │ │ ├── Model/
│ │ │ │ ├── User.php
│ │ │ │ ├── UserTable.php # TableGateway
│ │ │ │ └── UserRepository.php # Doctrine
│ │ │ ├── Form/
│ │ │ │ └── UserForm.php
│ │ │ ├── InputFilter/
│ │ │ │ └── UserFilter.php
│ │ │ └── Module.php
│ │ └── view/
│ │ └── user/
│ │ ├── index.phtml
│ │ └── form.phtml
│ └── Api/
│ ├── config/
│ │ └── module.config.php
│ └── src/
│ ├── Controller/
│ │ └── UserApiController.php
│ └── Module.php
├── config/
│ ├── application.config.php
│ ├── modules.config.php
│ └── autoload/
│ ├── global.php
│ └── local.php.dist
├── public/
│ └── index.php
├── data/
│ ├── cache/
│ └── log/
├── test/
│ └── UserTest/
│ └── Controller/
│ └── UserControllerTest.php
├── composer.json
└── phpunit.xml
Module Configuration
<?php
// module/User/config/module.config.php
namespace User;
use Laminas\Router\Http\Segment;
use Laminas\ServiceManager\Factory\InvokableFactory;
return [
'service_manager' => [
'factories' => [
Model\UserTable::class => Model\UserTableFactory::class,
Service\UserService::class => Service\UserServiceFactory::class,
],
'aliases' => [
'UserService' => Service\UserService::class,
],
'shared' => [
Model\UserTable::class => false, // new instance each time
],
],
'controllers' => [
'factories' => [
Controller\UserController::class => Controller\UserControllerFactory::class,
],
],
'router' => [
'routes' => [
'user' => [
'type' => Segment::class,
'options' => [
'route' => '/user[/:action[/:id]]',
'defaults' => [
'controller' => Controller\UserController::class,
'action' => 'index',
],
],
],
'user-api' => [
'type' => Segment::class,
'options' => [
'route' => '/api/users[/:id]',
'defaults' => [
'controller' => Controller\Api\UserController::class,
],
'constraints' => [
'id' => '[0-9]+',
],
],
],
],
],
'view_manager' => [
'template_path_stack' => [__DIR__ . '/../view'],
],
];
Module Class
<?php
// module/User/src/Module.php
namespace User;
use Laminas\Mvc\MvcEvent;
use Laminas\ModuleManager\Feature\ConfigProviderInterface;
class
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/laminas-auth.md
- references/laminas-db-doctrine.md
- references/laminas-forms.md
- references/laminas-mvc.md
- references/mezzio-api.md
- references/zend-migration.md
FAQ
Что делает скилл php-zend?
Use when the user asks about Laminas, Zend Framework migration, Laminas MVC, Mezzio, laminas-servicemanager factories, laminas-db TableGateway or laminas-inputfilter. Produces Laminas/Mezzio modules and migration steps. Not for Symfony (use symfony-backend) or Laravel (use php-laravel).
Как установить скилл php-zend?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл php-zend запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…