All Projects → rectorphp → rector-doctrine

rectorphp / rector-doctrine

Licence: MIT license
Rector upgrades rules for Doctrine

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to rector-doctrine

rector-laravel
Rector upgrades rules for Laravel
Stars: ✭ 75 (+102.7%)
Mutual labels:  ast, rector, instant-upgrades
rector-cakephp
Rector upgrades rules for CakePHP
Stars: ✭ 18 (-51.35%)
Mutual labels:  ast, rector, instant-upgrades
rector-nette
Rector upgrades rules for Nette
Stars: ✭ 16 (-56.76%)
Mutual labels:  ast, rector, instant-upgrades
Rector
Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
Stars: ✭ 4,739 (+12708.11%)
Mutual labels:  ast, rector, instant-upgrades
symbok-bundle
Symfony annotations bundle
Stars: ✭ 50 (+35.14%)
Mutual labels:  doctrine
parser-reflection
Parser Reflection API - Provides source code analysis without loading classes into the PHP memory
Stars: ✭ 97 (+162.16%)
Mutual labels:  ast
gox
JSX for Go
Stars: ✭ 165 (+345.95%)
Mutual labels:  ast
awesome-ruby-ast
A list of awesome tools and libraries which deals with ASTs in Ruby
Stars: ✭ 24 (-35.14%)
Mutual labels:  ast
vscode-ast
Show JavaScript / TypeScript Abstract Syntax Tree
Stars: ✭ 34 (-8.11%)
Mutual labels:  ast
snapdragon-util
Utilities for the snapdragon parser/compiler.
Stars: ✭ 17 (-54.05%)
Mutual labels:  ast
subpy
Python subsets
Stars: ✭ 41 (+10.81%)
Mutual labels:  ast
BBob
⚡️Blazing-fast js-bbcode-parser, bbcode js, that transforms and parses to AST with plugin support in pure javascript, no dependencies
Stars: ✭ 133 (+259.46%)
Mutual labels:  ast
doctrine-phpstorm-meta
PhpStorm meta data for expected arguments completion.
Stars: ✭ 35 (-5.41%)
Mutual labels:  doctrine
rehype-dom
HTML processor to parse and compile with browser APIs, powered by plugins
Stars: ✭ 20 (-45.95%)
Mutual labels:  ast
language-rust
Parser and pretty-printer for the Rust language
Stars: ✭ 78 (+110.81%)
Mutual labels:  ast
venusscript
A dynamic, interpreted, scripting language written in Java.
Stars: ✭ 17 (-54.05%)
Mutual labels:  ast
macro-visit
A macro-based generic visitor generator
Stars: ✭ 23 (-37.84%)
Mutual labels:  ast
lilt
LILT: noun, A characteristic rising and falling of the voice when speaking; a pleasant gentle accent.
Stars: ✭ 18 (-51.35%)
Mutual labels:  ast
TypeScriptAST
.NET port of Microsoft's TypeScript parser for simple AST manipulation
Stars: ✭ 37 (+0%)
Mutual labels:  ast
railt.org
A website
Stars: ✭ 23 (-37.84%)
Mutual labels:  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.

All you need to do is install the main package, and you're good to go:

composer require rector/rector --dev

Use Sets

To add a set to your config, use Rector\Doctrine\Set\DoctrineSetList class and pick one of constants:

use Rector\Doctrine\Set\DoctrineSetList;
use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {
    $rectorConfig->sets([
        DoctrineSetList::DOCTRINE_CODE_QUALITY,
    ]);
};

Learn Rector Faster

Rector is a tool that we develop and share for free, so anyone can save hundreds of hours on refactoring. But not everyone has time to understand Rector and AST complexity. You have 2 ways to speed this process up:

Both ways support us to and improve Rector in sustainable way by learning from practical projects.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].