PHP Package: palantirnet/drupal-rector

Drupal Rector is a powerful tool for automatically upgrading your Drupal codebase to modern best practices.

Current Version: 0.21.0
Last Updated: 2025-05-23
PHP Requirement: >=7.4
Dependencies:
rector/rector
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Drupal Rector is a highly efficient refactoring tool that helps you modernize and optimize your Drupal codebase by automating a variety of code transformations and upgrades. By leveraging the power of Rector and its rule sets, Drupal Rector simplifies the process of migrating your projects to newer PHP versions, implementing best practices, and enhancing the maintainability and performance of your Drupal applications.

🔗 View on GitHub

Download Latest Version: 0.21.0

Download Download v0.21.0

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/palantirnet/drupal-rector/0.21.0/loader.php';
require_once 'libs/rector/rector/{lib_version}/loader.php';

use DrupalRector\Tests\Rector\Deprecation\ArgumentDefaultsRectorTest;

$obj = new ArgumentDefaultsRectorTest();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.