PHPackages                             tzachi/coding-standard - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. tzachi/coding-standard

ActivePhpcodesniffer-standard[Validation &amp; Sanitization](/categories/validation)

tzachi/coding-standard
======================

Coding Standard for TZachi's projects

0.1.1(7y ago)0230MITPHPPHP ^7.1

Since Apr 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/TimoZachi/coding-standard)[ Packagist](https://packagist.org/packages/tzachi/coding-standard)[ RSS](/packages/tzachi-coding-standard/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Coding Standard
===============

[](#coding-standard)

[![License](https://camo.githubusercontent.com/2af30eb9d73b94dabcc6776afd9a84e668687e9f17d2ac0ac9bd6495a00529ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f747a616368692f636f64696e672d7374616e646172642e737667)](https://packagist.org/packages/tzachi/coding-standard)[![Build Status](https://camo.githubusercontent.com/6a1d36f6d8318fc452b697e48e0212b723ddaa833cd99b65b0c9571d22148b87/68747470733a2f2f7472617669732d63692e6f72672f54696d6f5a616368692f636f64696e672d7374616e646172642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/TimoZachi/coding-standard)[![Total Downloads](https://camo.githubusercontent.com/a7275554d7fd2469dcc7afe6e94073a69ffcd95c51e1632c3d0987fbd3df633d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f747a616368692f636f64696e672d7374616e646172642e737667)](https://packagist.org/packages/tzachi/coding-standard)[![Latest Stable Version](https://camo.githubusercontent.com/f4128aa87433fa37878de17157e60b6d9e4198530b988e7db5a43ce0eb468182/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f747a616368692f636f64696e672d7374616e646172642e7376673f636f6c6f723d626c7565266c6162656c3d737461626c65)](https://packagist.org/packages/tzachi/coding-standard)[![Unstable Version](https://camo.githubusercontent.com/6a8f3bdb4849491dcf118f60d9e248af90c226fc32f46f463c25a0179c2d5593/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f747a616368692f636f64696e672d7374616e646172642e7376673f6c6162656c3d756e737461626c65)](https://packagist.org/packages/tzachi/coding-standard)

This project has a set of [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) rules that are based on [doctrine/coding-standard](https://github.com/doctrine/coding-standard) rules, but with some small changes and additions.

Differences from doctrine coding-standards
------------------------------------------

[](#differences-from-doctrine-coding-standards)

- Inline comments should begin with a space, for example: `// This is an inline comment`
- Docblock annotation groups are grouped a bit different
- Empty catch in try...catch must have a comment explaining why the exception is not handled
- There shouldn't be a space after the negation operator `if (!$cond)`
- No space before colon in return type: `public function test(): void`
- Property doc comments shouldn't be a single line, but multiline instead:

```
/**
 * @var int
 */
```

- Variable/property/function names should be camelCased: `$camelCaseVariable`
- A @throw tag comment doesn't need to end in full stop:

```
class Abc
{
    /**
     * @throw InvalidArgumentException This is a comment that doesn't end in a full stop
     */
    public function def(): void
    {
        ...
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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 ~14 days

Total

2

Last Release

2581d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/99606fac343834244166490ce828e394f2f0f7a516784b97916575b68248e7e0?d=identicon)[TZachi](/maintainers/TZachi)

---

Top Contributors

[![timozachi](https://avatars.githubusercontent.com/u/2420231?v=4)](https://github.com/timozachi "timozachi (8 commits)")

---

Tags

codestylestandardrulescodingcschecks

### Embed Badge

![Health badge](/badges/tzachi-coding-standard/health.svg)

```
[![Health](https://phpackages.com/badges/tzachi-coding-standard/health.svg)](https://phpackages.com/packages/tzachi-coding-standard)
```

###  Alternatives

[doctrine/coding-standard

The Doctrine Coding Standard is a set of PHPCS rules applied to all Doctrine projects.

31914.1M739](/packages/doctrine-coding-standard)[leroy-merlin-br/coding-standard

The coding standard for PHP projects on LMBR

2137.0k10](/packages/leroy-merlin-br-coding-standard)[mnapoli/pretty

Run all code formatting tools with one command: pretty

1085.1k9](/packages/mnapoli-pretty)

PHPackages © 2026

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