PHPackages                             studiolemon/wp-lemon-rector - 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. studiolemon/wp-lemon-rector

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

studiolemon/wp-lemon-rector
===========================

Rector ruleset for WP Lemon projects

077PHP

Since Apr 3Pushed 5mo agoCompare

[ Source](https://github.com/Studio-Lemon/wp-lemon-rector)[ Packagist](https://packagist.org/packages/studiolemon/wp-lemon-rector)[ RSS](/packages/studiolemon-wp-lemon-rector/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

WP Lemon Rector
===============

[](#wp-lemon-rector)

A comprehensive Rector package with custom rules specifically designed for WP Lemon projects. This package includes Rector itself along with custom transformation rules for the Bulldozer block framework.

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

[](#installation)

Install this package in your WP Lemon project using Composer:

```
composer require --dev studiolemon/wp-lemon-rector
```

This will install Rector along with all custom WP Lemon rules.

Usage
-----

[](#usage)

Since this package includes Rector, you can run it directly without any additional configuration:

```
# Using the WP Lemon Rector executable
vendor/bin/wp-lemon-rector process path/to/your/blocks --dry-run
vendor/bin/wp-lemon-rector process path/to/your/blocks

# Or using Rector directly
vendor/bin/rector process path/to/your/blocks --dry-run
vendor/bin/rector process path/to/your/blocks
```

### Custom Configuration (Optional)

[](#custom-configuration-optional)

If you need to customize paths, add additional rules, or change settings, create a `rector.php` file in your project root:

```
