php-laravel

php-laravel is a skill for Claude Code, Codex from hoangatg/ai-agent-toolkit. It costs 52 tokens per session (386 once invoked), scanned A, original, MIT.

A guide to building PHP applications with Laravel, a PHP framework for web apps and APIs. It covers database models, templates, validation, authentication, background jobs, and testing.

In plain words
What is it for?
Use it to design Laravel applications, APIs, forms, business logic, queues, and administrative interfaces.
Why use it?
It helps keep Laravel code organized and applies current PHP and Laravel conventions to common application problems.

Skill for Claude CodeCodex

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

Good fit Use it to design Laravel applications, APIs, forms, business logic, queues, and administrative interfaces.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hoangatg/ai-agent-toolkit/php-laravel
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 hoangatg/ai-agent-toolkit --skill php-laravel
Clone the repo
git clone --depth 1 https://github.com/hoangatg/ai-agent-toolkit

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/hoangatg/ai-agent-toolkit/php-laravel/github.svg)](https://agentmods.dev/skills/hoangatg/ai-agent-toolkit/php-laravel)
Your own site
<a href="https://agentmods.dev/skills/hoangatg/ai-agent-toolkit/php-laravel"><img src="https://agentmods.dev/badge/skills/hoangatg/ai-agent-toolkit/php-laravel/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/hoangatg/ai-agent-toolkit/php-laravel"><img src="https://agentmods.dev/badge/skills/hoangatg/ai-agent-toolkit/php-laravel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 386 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.
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.00052 $0.00386
Opus 5 $0.00026 $0.00193
Sonnet 5 $0.00010 $0.00077
Haiku 4.5 $0.00005 $0.00039

Measured 8d ago against content hash e15cb4ed5306, 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 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 8d 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.

.agent/skills/php-laravel/SKILL.md · 53 lines

What it actually says

PHP & Laravel

Modern PHP development with Laravel 11+, emphasizing clean architecture and developer experience.

Core Principles

  • Elegant Syntax: Expressive, beautiful code
  • Convention First: Follow Laravel conventions before customizing
  • Modern PHP: Use PHP 8.3+ features (enums, typed properties, match)
  • Security Built-in: CSRF, XSS, SQL injection prevention

Stack Decisions

Concern Recommended
PHP Version 8.3+
Framework Laravel 11+
ORM Eloquent
Frontend Livewire 3 or Inertia.js
Queue Laravel Queue (Redis/SQS)
Testing Pest PHP or PHPUnit
API API Resources + Sanctum/Passport
Admin Filament PHP

Key Patterns

  • Form Requests: Validation in dedicated request classes
  • API Resources: Transform models for API responses
  • Service Pattern: Complex business logic in service classes
  • Action Classes: Single-responsibility action classes
  • Events & Listeners: Decouple side effects
  • Job Queues: Background processing for heavy tasks

Anti-Patterns

❌ Don't ✅ Do
Fat controllers Service/Action classes
Raw queries everywhere Eloquent with scopes
Skip validation Form Request classes
Ignore queues Queue slow operations
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. 8d ago First seen · 53 lines · 52 tokens per session scan A e15cb4ed5306

Subscribe to this mod's changes

php-laravel is a skill published in the GitHub repository hoangatg/ai-agent-toolkit (1 stars, last pushed 5mo ago), licensed MIT. It adds 52 tokens to every session and 386 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

springboot-patterns

Spring Boot architecture patterns, REST API design, layered services, data access, caching, async processing, and logging. Use for Java Spring Boot backend work.

deepelementlab/jupyter-studio · 36 tokens

laravel-patterns

Laravel architecture patterns, routing/controllers, Eloquent ORM, service layers, queues, events, caching, and API resources for production apps.

hashgraph-online/awesome-codex-plugins · 32 tokens

laravel

Use when building or extending a Laravel 11/12 app — Eloquent models, migrations and relationships, routing with controllers and Form Requests, queues and background jobs, framework-native security (validation, mass-assignment, policies, signed URLs, rate limiting), and Pest/PHPUnit feature tests. NOT pure PHP…

ericrisco/rsc-harness · 76 tokens

java-spring-best-practices

Enterprise-grade Spring Boot 3.5.x/4.x development guide. Use when building Spring Boot APIs, microservices, or enterprise Java applications. Covers Java Records as DTOs, Virtual Threads, ProblemDetail (RFC 7807), RestClient, structured logging, Testcontainers, observability, sealed exception hierarchies, and GraalVM…

cosbort/agent-skills · 104 tokens

filament-docs

Use this skill whenever you need Filament implementation guidance, need to locate the right local Filament rule files, need official Filament docs, or are unsure which Filament-specific rule applies. This skill is the router for Filament resources, schemas, tables, actions, widgets, panel providers, CSS, and tests.

leek/filament-agent-rules · 69 tokens

dare-laravel-api

Padrões DARE para APIs REST em Laravel 11 + PHP 8.3 — Strict Types, FormRequests, Services, JsonResources, Eloquent + casts, tratamento global de exceções, testes Feature/Pest, PHPStan/Larastan, Pint.

dewtech-technologies/dare-method · 62 tokens