composer-tooling

Audit PHP dependencies and PSR-4 autoload mappings in composer.json.

9|1|Updated Jun 16, 2026
One-click install
npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill composer-tooling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: composer-tooling
Source: https://github.com/AratKruglik/antigravity-sdlc/tree/main/plugins/php-foundation/skills/composer-tooling
Command: npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill composer-tooling

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Composer tooling standardizes and automates PHP dependency and autoload management by inspecting composer.json to determine PHP version requirements, runtime dependencies, and autoload mappings.

Core Features & Use Cases

  • Read composer.json to identify PHP version (require.php), declared dependencies, and autoload.psr-4 mappings.
  • Enforce correct placement of dependencies between require and require-dev, and align platform PHP configuration.
  • Guide autoload configuration and regeneration of the autoloader after adding namespaces to improve runtime performance.
  • Use in projects across frameworks to ensure consistent tooling and predictable installs.

Quick Start

Use the composer tooling workflow to audit composer.json, resolve dependencies, and regenerate composer.lock.

Frequently Asked Questions about composer-tooling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit PHP dependencies and autoload configuration in composer.json?

To audit PHP dependencies and autoload configuration, inspect composer.json to resolve version constraints, correctly split packages between require and require-dev, and verify PSR-4 namespace mappings for predictable installs.

What's the best way to configure PSR-4 autoloading for a PHP project?

Configuring PSR-4 autoloading requires defining namespace mappings in composer.json's autoload.psr-4 section. You must then regenerate the autoloader after adding namespaces to optimize runtime performance.

How do I resolve PHP version constraints and platform configuration in Composer?

Resolving PHP version constraints involves reading the require.php field and aligning config.platform.php in composer.json. This ensures dependencies match your runtime environment and prevents installation conflicts.

Why does Composer put development dependencies in require-dev instead of require?

Composer separates development dependencies into require-dev to distinguish packages needed only for testing from production requirements. Correct placement ensures lean production installs and accurate dependency management.

Does this Composer tooling work with PHP projects across different frameworks?

Yes, Composer tooling works across PHP frameworks by standardizing dependency and autoload management. It inspects composer.json to ensure consistent tooling, correct package placement, and predictable installs regardless of the framework.