Search

PythonReactSEOPDF
GitHub Skill

php-tooling

PHP ecosystem tooling, dependency management, and static analysis. Use when managing Composer dependencies, running PHPStan, or configuring PHP build tools.

HoangNguyen0403☆ 305 Repository stars90 Repository forks

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

View source ↗Guides

Skill instructions

PHP Tooling

Priority: P2 (MEDIUM)

Structure

project/
├── composer.json
├── phpstan.neon
└── .php-cs-fixer.php

Implementation Guidelines

  • Composer Lock: Commit composer.lock for environment parity.
  • PSR-4: Strictly map namespaces to src/ and tests/.
  • Static Analysis: Integrate PHPStan (level 5+) in CI.
  • Linting: Automate PSR-12 enforcement via PHP CS Fixer.
  • Debugging: Use Xdebug for profiling; avoid var_dump.
  • Scripts: Define lint, analyze, test in composer.json.

Anti-Patterns

  • Manual Requires: No Manual Require: Rely on Composer autoload.
  • Blind Updates: No Blind Updating: Review composer.lock diffs.
  • Production Debug: No Prod Xdebug: Disable debugging in live env.
  • Vendor Commits: No Vendor Check-in: Exclude vendor/ from git.

Code

{
  "autoload": {
    "psr-4": { "App\\": "src/" }
  },
  "scripts": {
    "analyze": "phpstan analyze"
  }
}

Examples

Read the usage examples in the source repository.

View source ↗

Source history

Indexed on
2026-03-11
Index updated
2026-03-11
Branch
main

Index and sync dates describe this directory. View the source repository for code history.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!