PHPackages                             mayesto/csl - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mayesto/csl

ActivePackage[Utility &amp; Helpers](/categories/utility)

mayesto/csl
===========

Check files

1.1.0(7y ago)124MITPHPPHP &gt;7.0

Since Aug 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mayesto/csl)[ Packagist](https://packagist.org/packages/mayesto/csl)[ RSS](/packages/mayesto-csl/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (7)Versions (6)Used By (0)

Mayesto CSL
-----------

[](#mayesto-csl)

[![Codacy Badge](https://camo.githubusercontent.com/5b51e425ca434b9ec3e993aa3e73f8f239710e7fcc5443856259a5a1b82a74d1/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3531653464373831316331613434663262393961353934383266376538653631)](https://app.codacy.com/app/mayesto/csl?utm_source=github.com&utm_medium=referral&utm_content=mayesto/csl&utm_campaign=Badge_Grade_Dashboard)

This pack was designed for more accurate checking of files

### Install

[](#install)

`composer global require mayesto/csl`

`ln -s ~/.composer/vendor/bin/csl /usr/bin`

### Usage

[](#usage)

#### Check command

[](#check-command)

`csl check ./src --yaml=./config.yml`

##### RunOptions:

[](#runoptions)

```
--format=value      Output format. Possible values: table, json
--yaml=filepath     Select config file in yaml format
-s|--short          Short file path on result
-vvv                Debug mode

```

### Features

[](#features)

- Full configurable stock of rules
- Full configurable source of files. Options: Scanning dir, Git modified files

### Rules

[](#rules)

- ClassAuthorPattern - Check class author with your regex
- ClassAuthorRequire - Require minimum one class author
- ClassMethodPhpDoc - Check if method has php doc
- ClassMethodPhpDocEmptyLineBeforeReturn - Check if method's php doc has invalid empty line
- ClassPhpDoc - Check if class has php doc
- ClassPhpDocPropertyRequire - Check if class's php doc has a property
- InternalFunctionNamespace - Find all call of native functions and check if they have fully namespace
- MethodReturnTypeRequire - Find all methods which have not return type cast
- ParserValidation - Basic parser validation
- TooMuchEmptyLines - Scan file and report too much empty lines
- EmptyLineOnEndOfFile - Check if file has empty line on end of file

### Config file

[](#config-file)

`At this moment file config is supported only in yaml format!`

Example of file:

```
fileIterator: Mayesto\CSL\FileIterator\Git # Name of iterator class
rules: # Array of rules
  Mayesto\CSL\Rule\ParserValidation:

  Mayesto\CSL\Rule\ClassAuthorPattern:
    arguments:
      - '.*?'

  Mayesto\CSL\Rule\ParserValidation:

  Mayesto\CSL\Rule\InternalFunctionNamespace:

  Mayesto\CSL\Rule\ClassPhpDoc:

  Mayesto\CSL\Rule\MethodReturnTypeRequire:

  Mayesto\CSL\Rule\ClassAuthorRequire:

  Mayesto\CSL\Rule\TooMuchEmptyLines:
    arguments:
      - 2 # Number of empty lines generating an error. Default: 2

  Mayesto\CSL\Rule\ClassMethodPhpDocEmptyLineBeforeReturn:

  Mayesto\CSL\Rule\EmptyLineOnEndOfFile:

  TestRule:
    file: /home/user/TestRule.php # Class which implements RuleInterface
```

### License

[](#license)

- [MIT](LICENSE)

### Author

[](#author)

This pack was made by Mayesto. If you have any question, send me an email.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 95% 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 ~1 days

Total

4

Last Release

2872d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2773239?v=4)[mayesto](/maintainers/mayesto)[@mayesto](https://github.com/mayesto)

---

Top Contributors

[![mayesto](https://avatars.githubusercontent.com/u/2773239?v=4)](https://github.com/mayesto "mayesto (19 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")

---

Tags

checkfilesmayesto

### Embed Badge

![Health badge](/badges/mayesto-csl/health.svg)

```
[![Health](https://phpackages.com/badges/mayesto-csl/health.svg)](https://phpackages.com/packages/mayesto-csl)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M528](/packages/shopware-core)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

54642.4k4](/packages/jolicode-castor)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.7k](/packages/contao-core-bundle)

PHPackages © 2026

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