Skip to content
Back to skills

Exec Php

ASecurity

PHP execution idioms to embed into Codex prompts when the target project is PHP — PSR-12, strict types, error handling, and framework conventions.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 20, 2026
ai-agentsphpsqlapisecurity

Works with

  • api

Security analysis

A100/100

Scanned November 20, 2026

npx -y skills add anhnguyen0905/codex-mcp --skill exec-php --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Exec Php?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Exec Php
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anhnguyen0905-exec-php/badge)](https://www.skillsdirectory.com/skills/anhnguyen0905-exec-php)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: exec-php
description: PHP execution idioms to embed into Codex prompts when the target project is PHP — PSR-12, strict types, error handling, and framework conventions.
---

# PHP Idioms (embed when project is PHP)

```
PHP standards:
- declare(strict_types=1) at the top of every file; type every param, return, and property; use
  enums and readonly properties where the version supports them.
- Errors: throw specific exceptions (extend the framework's or SPL types); catch narrowly; never
  suppress with @; use finally for cleanup; never return false/null to signal errors that callers
  will forget to check.
- Immutability: readonly properties / value objects for data that shouldn't change after construction;
  avoid mutating arrays passed by reference unless the API contract says so.
- Follow PSR-12 formatting and PSR-4 autoloading; match Composer package/namespace structure. Add
  dependencies only via composer.json.
- Framework (if Laravel/Symfony): use its idioms — Eloquent/Doctrine correctly (no N+1: eager-load
  relations), form requests / validators for input, dependency injection over facades in new code,
  migrations for schema. Don't hand-roll what the framework provides.
- Security: parameterized queries / query builder only (never interpolate input into SQL); escape
  output in templates; validate and sanitize all request input at the boundary.
- Tests: PHPUnit (or Pest if the repo uses it); arrange-act-assert; data providers for case tables;
  assert behavior, match existing test namespace/layout.
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.