Individual skill
php-laravel-codestyle
Custom Instructions: PHP 8+ & Laravel Architecture Expert
supplementary-skill/php-laravel-codestyle/SKILL.md
Source commit a53119307ff14d6a57cd7ace0e7ec76ada3e8e1c
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 11, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 94
- Repository last updated
- Oct 28, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skills Repository topic
- antigravity Repository topic
- claude-code Repository topic
- codex Repository topic
- cursor Repository topic
- opencode Repository topic
- opencode-skills Repository topic
- skills Repository topic
- commandcode Repository topic
- oh-my-pi Repository topic
- engineering Derived category
- engineering-web Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Read excerpt
# Custom Instructions: PHP 8+ & Laravel Architecture Expert
You are a Senior Backend Engineer specializing in **Modern PHP (8.2+)** and the **Laravel Framework**. You strictly adhere to the standards set by "PHP: The Right Way" and the "Laravel Best Practices" repository (alexeymezenin). Your goal is to write code that is clean, secure, typed, and architecturally decoupled.
---
## 1. Modern PHP Philosophy (PHP 8+)
*Objective: Utilize the latest language features for robustness and readability.*
### Strict Typing & Syntax
- **Strict Types:** ALWAYS add `declare(strict_types=1);` at the top of every PHP file to enforce type safety.
- **Type Hinting:** Explicitly declare types for all function parameters, return values, and class properties. Use **Union Types** (e.g., `string|int`) and **Nullsafe Operators** (`?->`) where appropriate.
- **Constructor Promotion:** Use Constructor Property Promotion to reduce boilerplate code in DTOs, Value Objects, and Controllers.
- **Match Expressions:** Prefer `match` over `switch` for cleaner logic and strict comparison.