everything-claude-code / rules
junimnjw/everything-claude-code/.cursor/rules/php-patterns.md
PHP patterns extending common rules
Cursor rule1 starsChanged 7 months ago
What's in it
- PHP 패턴
- 얇은 컨트롤러, 명시적 서비스
- DTO와 값 객체
- 의존성 주입
--- description: "PHP patterns extending common rules" globs: ["**/*.php", "**/composer.json"] alwaysApply: false --- # PHP 패턴 > 이 파일은 공통 패턴 규칙을 PHP 전용 내용으로 확장합니다. ## 얇은 컨트롤러, 명시적 서비스 - 컨트롤러는 전송에 집중: 인증, 검증, 직렬화, 상태 코드. - 비즈니스 규칙은 HTTP 부트스트래핑 없이 테스트하기 쉬운 애플리케이션/도메인 서비스로 이동. ## DTO와 값 객체 - 요청, 명령, 외부 API 페이로드에 대해 형태가 복잡한 연관 배열을 DTO로 대체. - 금액, 식별자, 제약 개념에 값 객체 사용. ## 의존성 주입 - 프레임워크 전역이 아닌 인터페이스 또는 좁은 서비스 계약에 의존. - 생성자를 통해 협력 객체를 전달하여 서비스 로케이터 조회 없이 테스트 가능.
More agent context in junimnjw/everything-claude-code
189 other files this repository gives its agents, the first 60 shown.
AGENTS.md
CLAUDE.md
Cursor rule
- .cursor/rules/common-agents.md
- .cursor/rules/common-coding-style.md
- .cursor/rules/common-development-workflow.md
- .cursor/rules/common-git-workflow.md
- .cursor/rules/common-hooks.md
- .cursor/rules/common-patterns.md
- .cursor/rules/common-performance.md
- .cursor/rules/common-security.md
- .cursor/rules/common-testing.md
- .cursor/rules/golang-coding-style.md
- .cursor/rules/golang-hooks.md
- .cursor/rules/golang-patterns.md
- .cursor/rules/golang-security.md
- .cursor/rules/golang-testing.md
- .cursor/rules/kotlin-coding-style.md
- .cursor/rules/kotlin-hooks.md
- .cursor/rules/kotlin-patterns.md
- .cursor/rules/kotlin-security.md
- .cursor/rules/kotlin-testing.md
- .cursor/rules/php-coding-style.md
- .cursor/rules/php-hooks.md
- .cursor/rules/php-security.md
- .cursor/rules/php-testing.md
- .cursor/rules/python-coding-style.md
- .cursor/rules/python-hooks.md
- .cursor/rules/python-patterns.md
- .cursor/rules/python-security.md
- .cursor/rules/python-testing.md
- .cursor/rules/swift-coding-style.md
- .cursor/rules/swift-hooks.md
- .cursor/rules/swift-patterns.md
- .cursor/rules/swift-security.md
- .cursor/rules/swift-testing.md
- .cursor/rules/typescript-coding-style.md
- .cursor/rules/typescript-hooks.md
- .cursor/rules/typescript-patterns.md
- .cursor/rules/typescript-security.md
- .cursor/rules/typescript-testing.md
Skill
- api-design.agents/skills/api-design/SKILL.md
- article-writing.agents/skills/article-writing/SKILL.md
- backend-patterns.agents/skills/backend-patterns/SKILL.md
- bun-runtime.agents/skills/bun-runtime/SKILL.md
- claude-api.agents/skills/claude-api/SKILL.md
- coding-standards.agents/skills/coding-standards/SKILL.md
- content-engine.agents/skills/content-engine/SKILL.md
- crosspost.agents/skills/crosspost/SKILL.md
- deep-research.agents/skills/deep-research/SKILL.md
- dmux-workflows.agents/skills/dmux-workflows/SKILL.md
- documentation-lookup.agents/skills/documentation-lookup/SKILL.md
- e2e-testing.agents/skills/e2e-testing/SKILL.md
- eval-harness.agents/skills/eval-harness/SKILL.md
- exa-search.agents/skills/exa-search/SKILL.md
- fal-ai-media.agents/skills/fal-ai-media/SKILL.md
- frontend-patterns.agents/skills/frontend-patterns/SKILL.md
- frontend-slides.agents/skills/frontend-slides/SKILL.md
- investor-materials.agents/skills/investor-materials/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.

