Download the PHP package kerrialn/indoctrinate without Composer

On this page you can find all versions of the php package kerrialn/indoctrinate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package 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, but useful for any MySQL project that needs a healthier schema.

Installation

composer require kerrialn/indoctrinate --dev

Configuration

Create indoctrinate.php in the root of your project:

Available Rules & Sets

See RULES.md for the full list of rules and sets, with per-rule constraint argument references.

Usage

analyze

Audit and fix schema issues. Dry-run by default — no changes are made unless --fix is passed.

Option Description
--fix Apply fixes (default is dry-run)
--report Print a findings summary table; exits non-zero if any found
--sql-dump[=file] Write planned SQL to a file (default: indoctrinate-<timestamp>.sql)
--migration[=dir] Write a Doctrine migration class (default dir: migrations/)
--impact[=dir] Scan PHP source for code references that will break (default: src/). Reports column renames, drops, and type changes by severity, with file path and line number.
--log=<dir> Write a timestamped log file to the given directory
--prod Prod mode — override connection from indoctrinate.php via --dsn or --db-* flags
--dsn=<dsn> Connection DSN, e.g. mysql://user:pass@host:3306/db

entities

Generate Doctrine entity classes directly from the database schema. Reads the connection from indoctrinate.php. Existing files are never overwritten — run again after deleting a file to regenerate it.

The mapping style (attributes vs. annotations) is auto-detected from the PHP version running the command, or can be forced with a flag.

Option Description
--output=<dir> Directory to write entity files into (default: src/Entity)
--namespace=<ns> PHP namespace for generated classes (default: App\Entity)
--table=<name> Only generate for this table; repeatable
--skip-table=<pattern> Skip tables matching a SQL LIKE pattern; repeatable
--remove-naming-prefix=<prefix> Strip a prefix from table names when deriving class names (e.g. app turns app_users into Users)
--annotations Force Doctrine @ORM\ annotations (PHP 7 style)
--attributes Force PHP 8 #[ORM\] attributes

All versions of indoctrinate with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4
symfony/console Version ^5.4
symfony/finder Version ^5.4
symfony/filesystem Version ^5.4
nikic/php-parser Version ^4.19.4
ext-pdo Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kerrialn/indoctrinate contains the following files

Loading the files please wait ...