PHPackages                             kerrialn/indoctrinate - 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. [Database &amp; ORM](/categories/database)
4. /
5. kerrialn/indoctrinate

ActiveLibrary[Database &amp; ORM](/categories/database)

kerrialn/indoctrinate
=====================

An automated package helps you align your database with Doctrine or simply fix database issues.

v1.0.5(1mo ago)2158MITPHPPHP ^7.4CI passing

Since Oct 13Pushed 1mo agoCompare

[ Source](https://github.com/Kerrialn/indoctrinate)[ Packagist](https://packagist.org/packages/kerrialn/indoctrinate)[ RSS](/packages/kerrialn-indoctrinate/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (36)Versions (21)Used By (0)

Indoctrinate
============

[](#indoctrinate)

A rule-based CLI tool that audits and fixes MySQL schema issues — enforcing consistent charsets and collations, adding missing indexes, standardising primary keys, and more. Run rules individually or as curated sets, dry-run to preview changes before applying them, and configure each rule to match your schema conventions.

Built for teams migrating legacy databases to [Doctrine ORM](https://www.doctrine-project.org/projects/orm.html), but useful for any MySQL project that needs a healthier schema.

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

[](#installation)

`composer require kerrialn/indoctrinate --dev`

Configuration
-------------

[](#configuration)

Create `indoctrinate.php` in the root of your project:

```
