PHPackages                             iqual/drupal-migrator - 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. iqual/drupal-migrator

ActivePhpcodesniffer-standard[Utility &amp; Helpers](/categories/utility)

iqual/drupal-migrator
=====================

Custom PHP CodeSniffer coding standard for Drupal migration

0275PHP

Since Oct 22Pushed 6mo agoCompare

[ Source](https://github.com/iqual-ch/drupal-migrator)[ Packagist](https://packagist.org/packages/iqual/drupal-migrator)[ RSS](/packages/iqual-drupal-migrator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Drupal Migrator Coding Standard
===============================

[](#drupal-migrator-coding-standard)

A custom PHP CodeSniffer coding standard for Drupal 11 migration tasks.

Features
--------

[](#features)

This coding standard includes these custom sniffs:

### RemoveAssertionsSniff

[](#removeassertionssniff)

Removes deprecated assertion code from `local.settings.php` files:

- Removes `assert_options(ASSERT_ACTIVE, TRUE);`
- Removes `\Drupal\Component\Assertion\Handle::register();`
- Removes the associated "Assertions." comment block

### RemoveDeprecatedCoreSniff

[](#removedeprecatedcoresniff)

Removes the deprecated `core:` property from custom `*.info.yml` files:

- Removes lines like `core: 8.x` or `core: 9.x`
- The `core:` property was deprecated in Drupal 8.7.7
- Should be replaced with `core_version_requirement:`
- Examples:
    - `core: 8.x` → *(removed)*
    - `core: 9.x` → *(removed)*
- Only applies to files in `/custom/` directories

### UpdateCoreVersionSniff

[](#updatecoreversionsniff)

Updates `core_version_requirement` in custom `*.info.yml` files:

- Adds `|| ^11` to any requirement that includes Drupal 10 (with or without minor version)
- Examples:
    - `^10` → `^10 || ^11`
    - `^10.3` → `^10.3 || ^11`
    - `^9 || ^10` → `^9 || ^10 || ^11`
    - `^9.5 || ^10` → `^9.5 || ^10 || ^11`
- Only applies to files in `/custom/` directories

Usage
-----

[](#usage)

### Check for issues:

[](#check-for-issues)

```
phpcs --standard=DrupalMigrator --extensions=php,yml
```

### Automatically fix issues:

[](#automatically-fix-issues)

```
phpcbf --standard=DrupalMigrator --extensions=php,yml
```

Development
-----------

[](#development)

The package structure follows PHP\_CodeSniffer standards:

```
app/packages/drupal-migrator/
├── composer.json
└── src/
    └── Standards/
        └── DrupalMigrator/
            ├── ruleset.xml
            └── Sniffs/
                └── Migration/
                    ├── RemoveAssertionsSniff.php
                    ├── RemoveDeprecatedCoreSniff.php
                    └── UpdateCoreVersionSniff.php

```

To add new sniffs:

1. Create a new sniff class in `src/Standards/DrupalMigrator/Sniffs/Migration/`
2. Add a reference to it in `src/Standards/DrupalMigrator/ruleset.xml`
3. Run `composer update` in the main project

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance47

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/43082de1b2e2b2b2d48b7ff7dbc7c60ff1d0a015123d4062ac0b49ea0b3b725f?d=identicon)[iqual](/maintainers/iqual)

---

Top Contributors

[![martinstadelmann](https://avatars.githubusercontent.com/u/25382761?v=4)](https://github.com/martinstadelmann "martinstadelmann (4 commits)")

### Embed Badge

![Health badge](/badges/iqual-drupal-migrator/health.svg)

```
[![Health](https://phpackages.com/badges/iqual-drupal-migrator/health.svg)](https://phpackages.com/packages/iqual-drupal-migrator)
```

###  Alternatives

[lvzhao1995/amap-sdk

高德地图SDK

1211.7k](/packages/lvzhao1995-amap-sdk)[moura137/laravel-elephantio

ElephantIO Service Provider for the Laravel PHP Framework

107.0k](/packages/moura137-laravel-elephantio)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
