A command line for the library, kept deliberately small: no console
component, no dependency added to the consumer's tree.
- Application/Command/Input/Output: parsing, dispatch, exit codes and
capturable output. Commands return an exit code instead of calling exit(),
so every one is testable.
- seed: runs the registered SeederRunner inside one transaction, with
--list and --only=name[,name].
- doctor: one round-trip that fails loudly when the DSN is wrong.
- make:model and make:seeder: live scaffolding into the consumer's code,
sharing name validation, the overwrite guard and directory creation
through MakeCommand.
The binary ships an empty runner; an application composes SeedCommand into
its own Application to register its seeders.
Attribute-mapped Active Record ORM for MariaDB/MySQL over PDO.
- Attribute-driven metadata: TableName, PrimaryKey, AutoIncrement, Column,
Guarded, Ignore, Required, Enum, Nullable, Length, Precision, Unique,
UniqueGroup, Index, MaxLength.
- Relationship mapping: BelongsTo, HasOne, HasMany, BelongsToMany with
batched eager loading and a 3-level depth limit.
- Orm entry point with fromArray, fromPdo, fromEnv and nested transactions.
- Immutable Query with Cond operators and GroupCond grouping.
- Repository read and write API, pagination, and typed exception hierarchy.
- Declares PHP >=8.3; Mago and PHPStan pin the parser to 8.3.
- MIT license.