PHPackages                             artisanpack-ui/code-style - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. artisanpack-ui/code-style

ActivePhpcodesniffer-standard[Testing &amp; Quality](/categories/testing)

artisanpack-ui/code-style
=========================

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.

1.1.0(5mo ago)0964↓100%[19 issues](https://github.com/ArtisanPack-UI/code-style/issues)9GPL-3.0-or-laterPHPPHP ^8.2

Since Jun 8Pushed 3mo agoCompare

[ Source](https://github.com/ArtisanPack-UI/code-style)[ Packagist](https://packagist.org/packages/artisanpack-ui/code-style)[ RSS](/packages/artisanpack-ui-code-style/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (15)Used By (9)

ArtisanPack UI Code Standards
=============================

[](#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
------------

[](#installation)

You can install the ArtisanPack UI Code Standards package by running the following composer command:

```
composer require artisanpack-ui/code-style --dev
```

Usage
-----

[](#usage)

### Configuration

[](#configuration)

After installation, you can create a `phpcs.xml` file in your project root with the following content:

```

    Your project's coding standard

    app
    src
    tests

    */vendor/*
    */node_modules/*

```

### Running PHP\_CodeSniffer

[](#running-php_codesniffer)

You can run PHP\_CodeSniffer with the ArtisanPackUI standard using the following command:

```
./vendor/bin/phpcs --standard=ArtisanPackUIStandard .
```

Or if you've set up a custom `phpcs.xml` file:

```
./vendor/bin/phpcs
```

### Custom Sniffs

[](#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](docs/sniffs/security-sniffs))
- **Best Practices**: Yoda conditionals, type declarations, disallowed functions

For complete details on all sniffs with examples, see the [Custom Sniffs Reference](docs/sniffs/sniffs).

### Customizing Sniffs

[](#customizing-sniffs)

You can customize the behavior of the sniffs by overriding their properties in your `phpcs.xml` file:

```

```

Documentation
-------------

[](#documentation)

📚 **[Complete Documentation](docs/home)** - Comprehensive guides and references

### Quick Links

[](#quick-links)

- **[Installation Guide](docs/installation)** - Detailed installation instructions
- **[Usage Guide](docs/usage/usage)** - Basic usage and IDE integration
- **[Troubleshooting](docs/troubleshooting)** - Common issues and solutions
- **[Customization Guide](docs/customization/customization)** - How to customize sniffs
- **[All Sniffs Reference](docs/sniffs/sniffs)** - Complete sniff documentation
- **[Security Sniffs](docs/sniffs/security-sniffs)** - Security-focused sniffs

Contributing
------------

[](#contributing)

🤝 **[Contributing Guidelines](docs/contributing/contributing)** - 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

[](#additional-resources)

- **[AI Guidelines](docs/contributing/ai-guidelines)** - Guidelines for AI-assisted development
- **[Code of Conduct](docs/contributing/contributing#code-of-conduct)** - Community standards

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance82

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~28 days

Recently: every ~41 days

Total

7

Last Release

167d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ba2a2c40c9a93470595cd10701d2291434f3a7db61862d9700a9e69e31608c6c?d=identicon)[JacobMartellaWebDesign](/maintainers/JacobMartellaWebDesign)

---

Top Contributors

[![ViewFromTheBox](https://avatars.githubusercontent.com/u/8247489?v=4)](https://github.com/ViewFromTheBox "ViewFromTheBox (48 commits)")

---

Tags

code-stylecoding-standardslaravellaravel-packagelintingphpphp-cs-fixer

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/artisanpack-ui-code-style/health.svg)

```
[![Health](https://phpackages.com/badges/artisanpack-ui-code-style/health.svg)](https://phpackages.com/packages/artisanpack-ui-code-style)
```

###  Alternatives

[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k123.5M1.8k](/packages/slevomat-coding-standard)[magento/magento-coding-standard

A set of Magento specific PHP CodeSniffer rules.

37113.4M299](/packages/magento-magento-coding-standard)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13176.9k8](/packages/youwe-testing-suite)[me-io/appium-driver-codeception

appium driver for codeception framework

1910.4k](/packages/me-io-appium-driver-codeception)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
