php-laravel-codestyle

php-laravel-codestyle is a skill for Claude Code, Codex from GulajavaMinistudio/awesome-copilot-id. It costs 19 tokens per session (946 once invoked), scanned A, original, MIT.

Coding guidance for PHP 8 and Laravel, a framework for building web applications in PHP. It covers strict typing, modern language features, common PHP standards, and separated application design.

In plain words
What is it for?
Writing or reviewing Laravel controllers, data objects, services, and other PHP files; applying PSR-12 style, PSR-4 autoloading, typed code, and patterns such as constructor property promotion and match expressions.
Why use it?
It gives the agent consistent rules for writing readable, typed, and maintainable PHP and Laravel code instead of making style and architecture decisions ad hoc.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Writing or reviewing Laravel controllers, data objects, services, and other PHP files; applying PSR-12 style, PSR-4 autoloading, typed code, and patterns such as constructor property promotion and match expressions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gulajavaministudio/awesome-copilot-id/php-laravel-codestyle
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add GulajavaMinistudio/awesome-copilot-id --skill php-laravel-codestyle
Clone the repo
git clone --depth 1 https://github.com/GulajavaMinistudio/awesome-copilot-id

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for php-laravel-codestyle

README.md
[![agentmods](https://agentmods.dev/badge/skills/gulajavaministudio/awesome-copilot-id/php-laravel-codestyle/github.svg)](https://agentmods.dev/skills/gulajavaministudio/awesome-copilot-id/php-laravel-codestyle)
Your own site
<a href="https://agentmods.dev/skills/gulajavaministudio/awesome-copilot-id/php-laravel-codestyle"><img src="https://agentmods.dev/badge/skills/gulajavaministudio/awesome-copilot-id/php-laravel-codestyle/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for php-laravel-codestyle

Your own site · 80×15
<a href="https://agentmods.dev/skills/gulajavaministudio/awesome-copilot-id/php-laravel-codestyle"><img src="https://agentmods.dev/badge/skills/gulajavaministudio/awesome-copilot-id/php-laravel-codestyle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 946 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.00946
Opus 5 $0.00010 $0.00473
Sonnet 5 $0.00004 $0.00189
Haiku 4.5 $0.00002 $0.00095

Measured 11d ago against content hash f7dd7ca67050, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

php-laravel-codestyle scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

supplementary-skill/php-laravel-codestyle/SKILL.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.
  • Standard: Follow PSR-12 for coding style and PSR-4 for autoloading.

2. Laravel Architecture & Design Patterns

Objective: "Fat Models, Skinny Controllers", and separation of concerns.

Controller & Request Handling

  • Skinny Controllers: Controllers must NOT contain business logic. They should only handle request validation, call a Service/Action, and return a response.
  • Form Requests: NEVER validate data inside the Controller. Create dedicated Form Request classes (php artisan make:request) for all validation logic,.
  • No SQL in Controllers: Do not write raw SQL or complex Eloquent chains inside controllers.

Business Logic Placement

  • Service/Action Classes: Encapsulate complex business logic into Service Classes or single-purpose Action Classes. Inject these into controllers using Dependency Injection,.
  • Fat Models: Put reusable query scopes, accessors, and mutators inside the Model, but keep heavy business processing out of the Model.

Read the full file on GitHub · 69 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 69 lines · 19 tokens per session scan A f7dd7ca67050

Subscribe to this mod's changes

php-laravel-codestyle is a skill published in the GitHub repository GulajavaMinistudio/awesome-copilot-id (73 stars, last pushed yesterday), licensed MIT. It adds 19 tokens to every session and 946 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.