Skip to content
Back to skills

Rules Php

ASecurity

ANVIL coding rules for php code (**/*.php, **/*Test.php, tests/**/*.php): PHP, PHP Testing.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
developmentphptestingapidatabase

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill rules-php --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rules Php?

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

Security grade badge for Rules Php
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-rules-php/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-rules-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: rules-php
description: "ANVIL coding rules for php code (**/*.php, **/*Test.php, tests/**/*.php): PHP, PHP Testing."
---

<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->

# ANVIL rules: php

Follow these rules for php code (**/*.php, **/*Test.php, tests/**/*.php).

## PHP

# PHP
- `declare(strict_types=1);` typed signatures.
- Prepared statements / query builder only; escape output.
- PSR-12 style; static analysis (PHPStan/Psalm) clean.

## PHP Testing

# PHP Testing

- Use PHPUnit or Pest datasets (`#[DataProvider]`) to cover edge cases without repeating setup code.
- Fake HTTP clients, mailers, queues, and clocks instead of hitting external APIs or real waits in unit tests.
- Wrap database integration tests cleanly with transactions or clean schema resets so test order never affects outcomes.
- Cover type coercion boundaries, validation failures, and authorization checks explicitly.

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 development →

Comments

Loading comments…

Newsletter

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