moderntv/mstyle

This package is abandoned and no longer maintained. The author suggests using the mcode/mcode package instead.

PHP quality assurance for ModernTV projects.

Installs: 2 942

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 5

Forks: 3

Open Issues: 0

Language:Makefile

v0.2 2024-09-30 06:53 UTC

This package is auto-updated.

Last update: 2024-12-06 16:17:52 UTC


README

📺 PHP quality assurance for ModernTV projects.

🕹 f3l1x.io | 💻 f3l1x | 🐦 @xf3l1x

Usage

To install latest version of mcode/mcode use Composer.

composer require mcode/mcode

Documentation

Codesniffer

  1. Install this package.
  2. Create ruleset.xml file.
<?xml version="1.0" encoding="UTF-8"?>
<ruleset>
  <rule ref="./vendor/mcode/mcode/src/codesniffer.xml"/>
</ruleset>
  1. Run codesniffer.
vendor/bin/phpcs --cache=var/codesniffer.dat --standard=ruleset.xml app

Phpstan

  1. Install this package.

  2. Create phpstan.neon file.

    includes:
    	- vendor/mcode/mcode/src/phpstan.neon
    	- phpstan-baseline.neon
    
    parameters:
    	level: 9
    	phpVersion: 80200
    
    	tmpDir: %currentWorkingDirectory%/temp/phpstan
    
    	fileExtensions:
    		- php
    		- phpt
    
    	paths:
    		- app

Development

This package is currently maintained by these authors.