{"id":18929619,"url":"https://github.com/thecodingmachine/tdbm-universal-module","last_synced_at":"2026-03-16T15:30:17.536Z","repository":{"id":57067883,"uuid":"114357245","full_name":"thecodingmachine/tdbm-universal-module","owner":"thecodingmachine","description":"Cross-framework module for thecodingmachine/tdbm","archived":false,"fork":false,"pushed_at":"2017-12-15T13:55:46.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-16T12:30:30.640Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thecodingmachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-15T10:13:49.000Z","updated_at":"2017-12-15T10:14:12.000Z","dependencies_parsed_at":"2022-08-24T14:23:45.234Z","dependency_job_id":null,"html_url":"https://github.com/thecodingmachine/tdbm-universal-module","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Ftdbm-universal-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Ftdbm-universal-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Ftdbm-universal-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Ftdbm-universal-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/tdbm-universal-module/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239927825,"owners_count":19719835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T11:34:00.395Z","updated_at":"2026-03-16T15:30:17.471Z","avatar_url":"https://github.com/thecodingmachine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/thecodingmachine/tdbm-universal-module/v/stable)](https://packagist.org/packages/thecodingmachine/tdbm-universal-module)\n[![Latest Unstable Version](https://poser.pugx.org/thecodingmachine/tdbm-universal-module/v/unstable)](https://packagist.org/packages/thecodingmachine/tdbm-universal-module)\n[![License](https://poser.pugx.org/thecodingmachine/tdbm-universal-module/license)](https://packagist.org/packages/thecodingmachine/tdbm-universal-module)\n[![Build Status](https://travis-ci.org/thecodingmachine/tdbm-universal-module.svg?branch=master)](https://travis-ci.org/thecodingmachine/tdbm-universal-module)\n[![Coverage Status](https://coveralls.io/repos/thecodingmachine/tdbm-universal-module/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/thecodingmachine/tdbm-universal-module?branch=master)\n\n# TDBM universal module\n\nThis package integrates TDBM in any [container-interop](https://github.com/container-interop/service-provider) compatible framework/container.\n\n## Tutorial\n\nLooking for a tutorial to get started? Check out the [TDBM 5 + container-interop/service-providers install guide](https://thecodingmachine.github.io/tdbm/doc/install_service-provider.html).\n\n## Installation\n\n```\ncomposer require thecodingmachine/tdbm-universal-module\n```\n\nOnce installed, you need to register the [`TheCodingMachine\\TDBM\\DI\\TdbmServiceProvider`](src/DI/TdbmServiceProvider.php) into your container.\n\nIf your container supports [thecodingmachine/discovery](https://github.com/thecodingmachine/discovery) integration, you have nothing to do. Otherwise, refer to your framework or container's documentation to learn how to register *service providers*.\n\n## Introduction\n\nThis service provider is meant to integrate TDBM in your application.\nIt will register the \"tdbm:generate\" command in the console (`vendor/bin/app_console`) and register all generated DAOs in the container.\n\n## Expected values / services\n\nThis *service provider* expects the following configuration / services to be available:\n\n| Name                                    | Compulsory | Description                            |\n|-----------------------------------------|------------|----------------------------------------|\n| `tdbm.daoNamespace`                     | *no*       | The namespace of the DAOs. If not specified, it will be guessed from your composer.json autoload section.  |\n| `tdbm.beanNamespace`                    | *no*       | The namespace of the beans. If not specified, it will be guessed from your composer.json autoload section. |\n| `Doctrine\\DBAL\\Connection`              | *yes*      | The database connection. |\n| `Doctrine\\Common\\Cache\\Cache`           | *yes*      | The cache service. |\n| `Symfony\\Component\\Console\\Application` | *yes*      | The console application. |\n\n## Provided services\n\nThis *service provider* provides the following services:\n\n**One service is created for each of your DAOs. The name of the service is the fully qualified name of your DAOs.**\n\nIf you have a `App\\Dao\\UserDao` class generated by TDBM, then that class is also available in the container using `$container-\u003eget(\"App\\Dao\\UserDao\")`.\n\n| Service name                | Description                          |\n|-----------------------------|--------------------------------------|\n| `TheCodingMachine\\TDBM\\TDBMService`              | The TDBMService  |\n| `TheCodingMachine\\TDBM\\Configuration`              | The TDBM configuration  |\n| `TheCodingMachine\\TDBM\\Utils\\NamingStrategyInterface`              | The naming strategy for the beans  |\n| `TheCodingMachine\\TDBM\\Services\\DaoDumper`              | Utility class used to optimize the service provider  |\n| `TheCodingMachine\\TDBM\\Utils\\GeneratorListenerInterface[]` | An array of generator listeners (contains the DaoDumper and can be extended by other providers to add more). |\n\n## Extended services\n\nThis *service provider* extends those services:\n\n| Name                                    | Compulsory | Description                       |\n|-----------------------------------------|------------|-----------------------------------|\n| `Symfony\\Component\\Console\\Application` | *yes*      | A command is added to the service |\n\n\n\u003csmall\u003eProject template courtesy of \u003ca href=\"https://github.com/thecodingmachine/service-provider-template\"\u003ethecodingmachine/service-provider-template\u003c/a\u003e\u003c/small\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Ftdbm-universal-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Ftdbm-universal-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Ftdbm-universal-module/lists"}