Download the PHP package artisanpack-ui/code-style without Composer
On this page you can find all versions of the php package artisanpack-ui/code-style. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download artisanpack-ui/code-style
More information about artisanpack-ui/code-style
Files in artisanpack-ui/code-style
Package code-style
Short Description A custom PHP code style standard based on PHPStorm settings. This package provides custom sniffs for PHP_CodeSniffer that enforce consistent code style across your PHP projects.
License GPL-3.0-or-later
Informations about the package code-style
ArtisanPack UI Code Standards
A custom PHP code style standard based on PHPStorm settings. This package provides custom sniffs for PHP_CodeSniffer that enforce consistent code style across your PHP projects.
Installation
You can install the ArtisanPack UI Code Standards package by running the following composer command:
Usage
Configuration
After installation, you can create a phpcs.xml file in your project root with the following content:
Running PHP_CodeSniffer
You can run PHP_CodeSniffer with the ArtisanPackUI standard using the following command:
Or if you've set up a custom phpcs.xml file:
Custom Sniffs
This package includes 16+ custom sniffs covering:
- Formatting: Indentation, braces, spacing, alignment
- Code Structure: Classes, control structures, imports, arrays
- Naming Conventions: PascalCase for classes, camelCase for functions/variables, snake_case for table columns
- Security: Input validation, output escaping (see Security Sniffs)
- Best Practices: Yoda conditionals, type declarations, disallowed functions
For complete details on all sniffs with examples, see the Custom Sniffs Reference.
Customizing Sniffs
You can customize the behavior of the sniffs by overriding their properties in your phpcs.xml file:
Documentation
📚 Complete Documentation - Comprehensive guides and references
Quick Links
- Installation Guide - Detailed installation instructions
- Usage Guide - Basic usage and IDE integration
- Troubleshooting - Common issues and solutions
- Customization Guide - How to customize sniffs
- All Sniffs Reference - Complete sniff documentation
- Security Sniffs - Security-focused sniffs
Contributing
🤝 Contributing Guidelines - How to contribute to the project
As an open source project, this package is open to contributions from anyone. Whether you want to report bugs, suggest features, improve documentation, or contribute code, please read through our comprehensive contributing guidelines.
Additional Resources
- AI Guidelines - Guidelines for AI-assisted development
- Code of Conduct - Community standards