搜索

PythonReactSEOPDF
GitHub Skill

unopim-backend-dev

Backend PHP development for UnoPim. Activates when writing PHP code, creating classes, models, repositories, events, listeners, or tests; or when the user mentions model, repository, controller, service, event, listener, observer, Concord, proxy, or needs to write backend code. MUST be invoked before writing any PHP tests.

unopim☆ 9,244 仓库 Stars121 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

UnoPim Backend Development

This skill provides guidance for developing UnoPim backend PHP code according to project standards and conventions.

When to Use This Skill

ALWAYS invoke this skill before:

  • Writing new PHP tests (*Test.php files)
  • Creating new PHP classes, models, or repositories
  • Modifying existing backend PHP code
  • Adding events, listeners, or observers
  • Working with Eloquent models and Concord proxies

Instructions

Follow UnoPim project conventions when adding or modifying backend PHP code:

  1. Coding style: See coding-conventions.md for Laravel/PSR standards
  2. Architecture patterns: See architecture.md for Concord, Repository, Strategy patterns
  3. Models and repositories: See models-repositories.md for Eloquent and Concord proxy patterns
  4. Events and listeners: See events-listeners.md for event-driven patterns
  5. Writing tests: See testing.md for Pest testing conventions

Key Principles

  • Follow Laravel coding standards with pint (Laravel preset)
  • Use the Repository pattern — all repos extend Webkul\Core\Eloquent\Repository
  • Use Concord proxy models for model extensibility
  • Place new code under the appropriate packages/Webkul/{Package}/src/ directory
  • Use PSR-4 autoloading: Webkul\{Package}\ namespace
  • Events follow {domain}.{entity}.{action}.{before|after} naming
  • Product/category values use structured JSON with scoping (common, locale_specific, channel_specific, channel_locale_specific)
  • Run ./vendor/bin/pint before committing
  • Run ./vendor/bin/pest to verify tests pass

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-03-11
索引更新时间
2026-03-11
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!