70 Repositories
PHP phpstan-rules Libraries
WooCommerce function and class declaration stubs for static analysis.
WooCommerce Stubs This package provides stub declarations for WooCommerce functions, classes and interfaces. These stubs can help plugin and theme dev
Perform static analysis of Drupal PHP code with phpstan-drupal.
Perform static analysis of Drupal PHP code with PHPStan and PHPStan-Drupal on Drupal using PHP 8. For example: docker run --rm \ -v $(pwd)/example01
Dedicated plugin for PocketMine-API 4, this will help staff members to make players follow the rules to the letter
StaffMode Dedicated plugin for PocketMine-API 4, this will help staff members to make players follow the rules to the letter Annotation This plugin is
The last validation library you will ever need!
Mighty The last validation library you will ever need! Table of Contents Installation About Mighty Quickstart Mighty Validation Expression Language Ex
Test and enforce architectural rules in your Laravel applications. Keep your app's architecture clean and consistent!
Laravel Arkitect Laravel Arkitect lets you test and enforce your architectural rules in your Laravel applications, and it's a PHPArkitect wrapper for
WordPress extensions for PHPStan ⛏️
WordPress extensions for PHPStan Static analysis for the WordPress ecosystem. PHPStan WordPress Installation Add this package to your project. compose
Enjoy realtime input validation by passing your rules in your input itself.
Laravel Realtime input Enjoy realtime input validation by passing your rules in your input itself. Requirments This package is tested with Laravel v8
Repository containing all the PHPStan rules from the book "Recipes for Decoupling"
PHPStan rules from the book "Recipes for Decoupling" by Matthias Noback In the book "Recipes for Decoupling" we discuss how to decouple from web and C
Extension for PHPStan to allow analysis of Drupal code.
phpstan-drupal Extension for PHPStan to allow analysis of Drupal code. Sponsors Would you like to sponsor? Usage When you are using phpstan/extension-
PHPStan extension for sealed classes and interfaces.
Sealed classes with PHPStan This extension adds support for sealed classes and interfaces to PHPStan. Installation To use this extension, require it v
Various PHPStan rules we found useful in ShipMonk.
ShipMonk PHPStan rules Various rules we found useful in ShipMonk. You may found some of them opinionated, so we recommend picking only those fitting y
Dockerise Symfony Application (Symfony 6 + Clean Architecture+ DDD+ CQRS + Docker + Xdebug + PHPUnit + Doctrine ORM + JWT Auth + Static analysis)
Symfony Dockerise Symfony Application Install Docker Install Docker Compose Docker PHP & Nginx Create Symfony Application Debugging Install Xdebug Con
An extension for PHPStan for adding analysis for PHP Language Extensions.
PHPStan PHP Language Extensions (currently in BETA) This is an extension for PHPStan for adding analysis for PHP Language Extensions. Language feature
ExtDN PHP_CodeSniffer rules for Magento 2
ExtDN PHP_CodeSniffer rules for Magento 2 Introduction There are already many PHP CodeSniffer rules out there to aid in Magento 2 development: Magento
PHPStan extension for webmozart/assert
PHPStan webmozart/assert extension PHPStan webmozart/assert Description The main scope of this extension is to help phpstan to detect the type of obje
PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits.
Rules for detecting usage of deprecated classes, methods, properties, constants and traits. PHPStan Installation To use this extension, require it in
Create custom WordPress routes and redirects, restrict access by roles and/or capabilities. Routes made simple
Create custom WordPress routes and redirects, restrict access by roles and/or capabilities. Routes made simple
Set of rules for PHP_CodeSniffer and PHP-CS-Fixer used by Symplify projects.
20+ Coding Standard checkers for PHP projects with focus on Clean Architecture
PHPStan PHPUnit extensions and rules
PHPStan PHPUnit extensions and rules PHPStan PHPUnit This extension provides following features: createMock(), getMockForAbstractClass() and getMockFr
Rector Rules for BEAR.Sunday
Rector Rules for BEAR.Sunday The rector/rector rules for BEAR.Sunday.
A simple laravel state machine to handle model transitions, based on a pre-defined list of rules
A simple state machine that allows transitioning model states based on pre-defined rules. Installation You can install the package via composer: compo
phpcs-security-audit is a set of PHP_CodeSniffer rules that finds vulnerabilities and weaknesses related to security in PHP code
phpcs-security-audit is a set of PHP_CodeSniffer rules that finds vulnerabilities and weaknesses related to security in PHP code.
PHPStan Symfony Framework extensions and rules
PHPStan Symfony Framework extensions and rules PHPStan This extension provides following features: Provides correct return type for ContainerInterface
Validated properties in PHP8.1 and above using attribute rules
PHP Validated Properties Add Rule attributes to your model properties to make sure they are valid. Why this package? When validating external data com
The tool converts different error reporting standards for deep compatibility with popular CI systems (TeamCity, IntelliJ IDEA, GitHub Actions, etc).
JBZoo / CI-Report-Converter Why? Installing Using as GitHub Action Example GitHub Action workflow Available Directions Help description in terminal Co
Doctrine extensions for PHPStan
Doctrine extensions for PHPStan PHPStan Doctrine This extension provides following features: DQL validation for parse errors, unknown entity classes a
The main scope of this extension is to help phpstan to detect the type of object after the Assert\Assertion validation.
PHPStan beberlei/assert extension PHPStan beberlei/assert Description The main scope of this extension is to help phpstan to detect the type of object
Extra validation rules for dealing with images in Laravel 5.
Image-Validator Extra validation rules for dealing with images in Laravel 5. NOTE: As of Laravel version 5.2, there are now built-in validation rules
Hoa is a modular, extensible and structured set of PHP libraries
Hoa is a modular, extensible and structured set of PHP libraries. Moreover, Hoa aims at being a bridge between industrial and research worlds. Hoa\Rul
PHP rule engine
PHP简易规则引擎 使用说明书(2016-08-11) Tony.zhang 什么是规则引擎 能Google的就不多说了。简易概括来说,就是通过解析更易定义的规则,来执行定义的动作,包括:重新赋值,调用自定义函数。对于后端特别多逻辑的业务,规则引擎能较好地节省开发时间,降低维护成本。JAVA有很多实
Phpcs-magento-rules - A set of PHPCS rules used by made.com when hacking Magento
Made.com PHPCS Magento Rules A set of PHPCS rules used by made.com when hacking Magento. Pre-Requisites PHPCS Installation Short Version Clone this re
Phpstan-dba - database handling related class reflection extension for PHPStan & framework-specific rules
database handling class reflection extension for PHPStan This extension provides following features: PDO-query knows the array shape of the returned
Docker image that provides static analysis tools for PHP
Static Analysis Tools for PHP Docker image providing static analysis tools for PHP. The list of available tools and the installer are actually managed
Returns a list of Craft/Vue/React route rules and element URLs for ServiceWorkers from Craft entries
Route Map plugin for Craft CMS 3.x Returns a list of Craft/Vue/React route rules and element URLs for ServiceWorkers from Craft entries Related: Route
phpcs-security-audit is a set of PHP_CodeSniffer rules that finds vulnerabilities and weaknesses related to security in PHP code
phpcs-security-audit v3 About phpcs-security-audit is a set of PHP_CodeSniffer rules that finds vulnerabilities and weaknesses related to security in
⚗️ Adds code analysis to Laravel improving developer productivity and code quality.
⚗️ About Larastan Larastan was created by Can Vural and Nuno Maduro, got artwork designed by @Caneco, is maintained by Can Vural, Nuno Maduro, and Vik
Manage redirects using database rules. Rules are intended to be very similar to Laravel default routes, so syntax is pretty easy to comprehend.
Laravel DB redirector Manage HTTP redirections in Laravel using database Manage redirects using database rules. Rules are intended to be very similar
Enforce that your classes get only instantiated by the factories you define!
Enforce that your classes get only instantiated by the factories you define!
🛂 Use this package to validate the identity card from your country using laravel validation rules.
Identity Card Checker Laravel Validation Rules Use this package to validate the identity card number from your country Installation You can install th
WordPress core test suite function and class declaration stubs for static analysis by PHPStan
WordPress Core Test Suite Stubs This package provides stub declarations for the WordPress Core Test Suite functions, classes and interfaces. These stu
Custom PHPStan rules
phpstan-rules Provides additional rules for phpstan/phpstan. Installation Run $ composer require --dev alister/phpstan-rules Usage All of the rules pr
Validation rules for Money and Currency
money-validation-laravel Validation rules for Money and Currency Installation composer require brokeyourbike/money-validation-laravel Usage Package us
A PHPStan package that supports working with Extbase
PHPStan for Extbase This package provides a couple of stubs and services to make your life easier when working with PHPStan and Extbase. Examples clas
Easily validate data attributes through a remote request
Laravel Remote Rule Easily validate data attributes through a remote request. This package allows you to define a subset of custom rules to validate a
Prevent users from reusing recently used passwords
Laravel Password History Validation Prevent users from reusing recently used passwords. Installation You can install the package via composer: compose
Sandbox project for the PHPStan workshop
Sandbox project for a PHPStan workshop Installation Requirements Docker Engine Docker Compose Git Bash Getting started Clone this repository (git clon
Magento specific extension for phpstan
bitexpert/phpstan-magento This package provides some additional features for PHPStan to make it work for Magento 2 projects. Installation The preferre
Next generation phpDoc parser with support for intersection types and generics.
PHPDoc-Parser for PHPStan PHPStan Next generation phpDoc parser with support for intersection types and generics. Code of Conduct This project adheres
Analyzes PHPStan baseline files and creates aggregated error trend-reports
Analyzes phpstan baseline files Analyzes PHPStan baseline files and creates aggregated error trend-reports.
Rules to detect game engines and other technologies based on Steam depot file lists
SteamDB File Detection Rule Sets This is a set of scripts that are used by SteamDB to make educated guesses about the engine(s) & technology used to b
Modern version of pocketmine forms API, ported to PHP 8.0+ with high quality code and phpstan integration
forms Modern version of pocketmine forms API, ported to PHP 8.0+ with high quality code and phpstan integration Code samples ModalForm Using ModalForm
PHPStan extension to support #[Readonly] constructor properties
icanhazstring/phpstan-readonly-property Support #[Readonly] promoted constructor properties for PHPStan. This library is used to have a full transitio
A Pocketmine-MP (PMMP) plugin to help staff members enforce the rules of the server.
StaffMode is an all-in-one Pocketmine-MP (PMMP) moderation plugin made to simplify the life of staff members.
An implementation of the Minecraft: Bedrock Edition protocol in PHP
BedrockProtocol An implementation of the Minecraft: Bedrock Edition protocol in PHP This library implements all of the packets in the Minecraft: Bedro
A server software for Minecraft: Bedrock Edition in PHP
A highly customisable, open source server software for Minecraft: Bedrock Edition written in PHP Getting started Documentation Installation instructio
Rector upgrades rules for Laravel
Rector Rules for Laravel See available Laravel rules Install This package is already part of rector/rector package, so it works out of the box. All yo
Rector upgrades rules for Symfony Framework
Rector Rules for Symfony See available Symfony rules Install This package is already part of rector/rector package, so it works out of the box. All yo
Rector upgrades rules for Doctrine
Rector Rules for Doctrine See available Doctrine rules Install This package is already part of rector/rector package, so it works out of the box.
Symplify - Making Everyday PHP Development Simple
Symplify - Making Everyday PHP Development Simple In this monorepo you'll find PHP packages that help you with: your first coding standard maintenance
Rector rules for Nette to Symfony migration
Rector Nette to Symfony Do you need to migrate from Nette to Symfony? You can ↓ How we Migrated 54 357-lines Application from Nette to Symfony in 2 Pe
The tool converts different error reporting standards for deep compatibility with popular CI systems (TeamCity, IntelliJ IDEA, GitHub Actions, etc).
JBZoo / CI-Report-Converter Why? Installing Using as GitHub Action Example GitHub Action workflow Available Directions Help description in terminal Co
PHPStan Rules for Rector developers
Rector PHPStan Rules PHPStan rules for Rector and projects that maintain Rector rulesets. Install composer require rector/phpstan-rules --dev Do you u
Another web based photo gallery
Phyxo Simply share your images. Requirements This project use severals librairies that need at least PHP 7.3.0 This project uses a database and suppor
Rector upgrades rules for PHPUnit
Rector Rules for PHPUnit See available PHPUnit rules Install composer require rector/rector-phpunit Use Sets To add a set to your config, use Rector\P
Rector upgrades rules for Nette
Rector Rules for Nette See available Nette rules Install composer require rector/rector-nette Use Sets To add a set to your config, use Rector\Nette\S
Rector upgrades rules for CakePHP
Rector Rules for CakePHP See available CakePHP rules Install composer require rector/rector-cakephp Use Sets To add a set to your config, use Rector\C
PHP Static Analysis Tool - discover bugs in your code without running it!
PHPStan - PHP Static Analysis Tool PHPStan focuses on finding errors in your code without actually running it. It catches whole classes of bugs even b
A starter-kit for your PHP project.
PHP Noise A starter-kit for your PHP project. It includes frequently needed boilerplate setups (ci, badges, etc.) 📦 Installation To install this appl
Powerful implementation of the Specification pattern in PHP
RulerZ The central idea of Specification is to separate the statement of how to match a candidate, from the candidate object that it is matched agains
A simple stateless production rules engine for PHP 5.3+
Ruler Ruler is a simple stateless production rules engine for PHP 5.3+. Ruler has an easy, straightforward DSL ... provided by the RuleBuilder: $rb =