thecodingmachine/tdbm-bundle
Symfony bundle for TDBM, a fast PHP ORM that generates DAOs and beans from your database schema. It wires TDBM into Symfony with configuration, service integration, and commands for a streamlined database layer.
thecodingmachine/tdbm-bundle is a Symfony bundle, not a Laravel package. It registers TDBM services and console commands in a Symfony kernel. You cannot install it into a Laravel app and use it via Eloquent or Artisan. If you want TDBM's schema-first ORM in Laravel, use the standalone thecodingmachine/tdbm library and wire DAOFactory yourself in a service provider.composer require thecodingmachine/tdbm-bundle, enable TDBMBundle in config/bundles.php, set DATABASE_URL, and add config/packages/tdbm.yaml with bean/DAO namespaces and connection settings. Run the bundle's generation command (typically bin/console tdbm:generate) to produce beans and DAOs from your schema.DAOFactory and call $daoFactory->getUserDao()->findAll() or $userDao->save($user). This is the closest to "database-first scaffolding" you get in PHP.src/Bean and src/DAO directories to see what it produced.DAOFactory or specific DAOs and use find, findAll, save, delete. Keep query logic in DAOs or repositories, not in beans.thecodingmachine/tdbm via Composer, create a TdbmServiceProvider binding a singleton DAOFactory using Laravel's DBAL connection, and add an Artisan command that shells out to TDBM's generator. Keep generated code under app/Generated and exclude it from PHPStan/coverage.DAOFactory and generated DAOs; use Symfony's DBAL connection for transactions; use TDBM's event/annotation hooks for lifecycle logic instead of editing generated files.Model::where(), no relationships via Eloquent, no Artisan make:model. TDBM handles foreign keys and generated methods, but it is a different mental model.tdbm config; a missing config/bundles.php entry or wrong namespace silently produces no services. For standalone TDBM, you own the DAOFactory construction and must pass the correct DBAL connection and naming strategy.How can I help you explore Laravel packages today?