{"id":18929419,"url":"https://github.com/thecodingmachine/doctrine-annotations-universal-module","last_synced_at":"2025-06-28T21:32:48.832Z","repository":{"id":57067859,"uuid":"60021188","full_name":"thecodingmachine/doctrine-annotations-universal-module","owner":"thecodingmachine","description":"Cross-framework module for doctrine/annotations","archived":false,"fork":false,"pushed_at":"2019-02-04T17:01:05.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"1.1","last_synced_at":"2025-06-13T15:03:41.834Z","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":"2016-05-30T15:40:38.000Z","updated_at":"2019-02-04T17:01:07.000Z","dependencies_parsed_at":"2022-08-24T10:20:15.785Z","dependency_job_id":null,"html_url":"https://github.com/thecodingmachine/doctrine-annotations-universal-module","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thecodingmachine/doctrine-annotations-universal-module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fdoctrine-annotations-universal-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fdoctrine-annotations-universal-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fdoctrine-annotations-universal-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fdoctrine-annotations-universal-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/doctrine-annotations-universal-module/tar.gz/refs/heads/1.1","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fdoctrine-annotations-universal-module/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261012084,"owners_count":23096802,"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:32:38.091Z","updated_at":"2025-06-28T21:32:48.815Z","avatar_url":"https://github.com/thecodingmachine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/thecodingmachine/doctrine-annotations-universal-module.svg?branch=1.1)](https://travis-ci.org/thecodingmachine/doctrine-annotations-universal-module)\n[![Coverage Status](https://coveralls.io/repos/thecodingmachine/doctrine-annotations-universal-module/badge.svg?branch=1.1\u0026service=github)](https://coveralls.io/github/thecodingmachine/doctrine-annotations-universal-module?branch=1.1)\n\n\n# Doctrine annotations universal module\n\nThis package integrates [doctrine/annotations](https://github.com/doctrine/annotations) (the Doctrine annotation library) in any [container-interop/service-provider](https://github.com/container-interop/service-provider) compatible framework/container.\n\n## Installation\n\n```\ncomposer require thecodingmachine/doctrine-annotations-universal-module\n```\n\nOnce installed, you need to register the [`TheCodingMachine\\DoctrineAnnotationsServiceProvider`](src/DoctrineAnnotationsServiceProvider.php) into your container.\n\nIf your container supports 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 will provide a default Doctrine AnnotationReader implementation. It will use a Doctrine cache if the cache is available.\n\nNote: you can get a service provider providing a working Doctrine cache using the following packages:\n \n```\ncomposer require thecodingmachine/stash-universal-module\ncomposer require thecodingmachine/psr-6-doctrine-bridge-universal-module\n```\n\nThis will install Stash and its related service-provider and a PSR-6 to Doctrine cache bridge.\n\n### Usage\n\n```php\nuse Doctrine\\Common\\Annotations\\AnnotationReader;\n\n$annotationReader = $container-\u003eget(AnnotationReader::class);\n```\n\n### Default behaviour\n\nThis service provider will lookup for a `Doctrine\\Common\\Cache\\Cache` service. If available, this cache system will be used to cache annotations.\n\nAnnotations will be loaded using the autoloader from Composer.\n\n## Expected values / services\n\nThis *service provider* expects the following configuration / services to be available:\n\n| Name            | Compulsory | Description                            |\n|-----------------|------------|----------------------------------------|\n| `Doctrine\\Common\\Cache\\Cache` | *no* | A Doctrine cache.  |\n| `thecodingmachine.stash-universal-module.debug` | *no* | Whether debug mode is enabled or not. Defaults to `true`. In debug mode, cache is invalidated with a PHP file changes.  |\n\n\n## Provided services\n\nThis *service provider* provides the following services:\n\n| Service name                | Description                          |\n|-----------------------------|--------------------------------------|\n| `Doctrine\\Common\\Annotations\\Reader` | A Doctrine annotation reader.  |\n\n## Extended services\n\nThis *service provider* does not extend any service.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fdoctrine-annotations-universal-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Fdoctrine-annotations-universal-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fdoctrine-annotations-universal-module/lists"}