php-coding-standards

Enforce Nextcloud PHP coding standards with PHP CS Fixer.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/renne/skills --skill php-coding-standards-renne
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-coding-standards
Source: https://github.com/renne/skills/tree/main/nextcloud/php-coding-standards
Command: npx skills add https://github.com/renne/skills --skill php-coding-standards-renne

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures that PHP code adheres to Nextcloud's specific coding standards, improving code quality, consistency, and maintainability across projects.

Core Features & Use Cases

  • Automated Code Formatting: Applies Nextcloud's PHP coding standards using PHP CS Fixer.
  • Consistency Enforcement: Checks and enforces naming conventions, indentation (tabs), documentation, and control structure rules.
  • Use Case: When reviewing a pull request for a new Moodle feature, use this Skill to automatically check if the PHP code complies with Nextcloud's established coding style guide.

Quick Start

Use the php-coding-standards skill to check the formatting of the file /path/to/your/php/file.php.

Frequently Asked Questions about php-coding-standards

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

FAQPage Schema
How do I enforce Nextcloud PHP coding standards in my project?

To enforce Nextcloud PHP coding standards, you can use this Skill to apply Nextcloud's specific style guide via PHP CS Fixer. It automatically checks and formats your PHP code for quality and consistency.

What does the Nextcloud coding standard check for in PHP files?

The Nextcloud coding standard checks PHP files for naming conventions, tab indentation, documentation, and control structure rules. This ensures consistent formatting and maintainability across your project's codebase.

Do I need composer to run the Nextcloud coding standard checks?

Yes, you need composer installed to run the Nextcloud coding standard checks. The Skill requires composer to install and execute the nextcloud/coding-standard package for automated PHP formatting.

Can I use this to automatically format PHP code during a pull request review?

Yes, you can use this Skill to automatically check and format PHP code during a pull request review. It applies Nextcloud's established coding style guide to ensure submitted code complies with project standards.

Is PHP CS Fixer the only tool used for applying these formatting rules?

Yes, PHP CS Fixer is the tool used by this Skill to apply Nextcloud's formatting rules. It serves as the core mechanism for enforcing the specific code quality and style standards required by the project.