PHPackages                             memio/linter - 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. memio/linter

ActiveLibrary[Testing &amp; Quality](/categories/testing)

memio/linter
============

Memio's linter, a set of constraint that check models for syntax errors

v3.0.1(3mo ago)3311.1k↓30.8%14MITPHPPHP ^7.2 || ^8.0CI passing

Since Apr 20Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/memio/linter)[ Packagist](https://packagist.org/packages/memio/linter)[ Docs](http://memio.github.io/memio)[ RSS](/packages/memio-linter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (7)Versions (13)Used By (4)

Memio's Linter
==============

[](#memios-linter)

A set of [Memio constraints](http://github.com/memio/validator) that check [Memio models](http://github.com/memio/model) for syntax errors and the likes.

> **Note**: This package is part of [Memio](http://memio.github.io/memio), a highly opinionated PHP code generator. Have a look at [the main repository](http://github.com/memio/memio).

Installation
------------

[](#installation)

Install it using [Composer](https://getcomposer.org/download):

```
$ composer require memio/linter:^3.0
```

Example
-------

[](#example)

Usually we'd have to install [Memio](http://github.com/memio/memio) and use its `Build::linter()` method to get a linter validator.

The atlernative would be to build manually the validator as follow:

```
