{"id":38585035,"url":"https://github.com/markuszeller/php-annotations","last_synced_at":"2026-01-17T08:18:29.146Z","repository":{"id":62524321,"uuid":"200526458","full_name":"markuszeller/php-annotations","owner":"markuszeller","description":"This class helps reading annotations.","archived":false,"fork":false,"pushed_at":"2019-08-04T18:19:30.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T13:54:17.617Z","etag":null,"topics":["annotations","composer","package","parser","php"],"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/markuszeller.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":"2019-08-04T18:13:22.000Z","updated_at":"2023-05-01T02:09:42.000Z","dependencies_parsed_at":"2022-11-02T13:47:37.176Z","dependency_job_id":null,"html_url":"https://github.com/markuszeller/php-annotations","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/markuszeller/php-annotations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markuszeller%2Fphp-annotations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markuszeller%2Fphp-annotations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markuszeller%2Fphp-annotations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markuszeller%2Fphp-annotations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markuszeller","download_url":"https://codeload.github.com/markuszeller/php-annotations/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markuszeller%2Fphp-annotations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28504360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["annotations","composer","package","parser","php"],"created_at":"2026-01-17T08:18:29.047Z","updated_at":"2026-01-17T08:18:29.123Z","avatar_url":"https://github.com/markuszeller.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-annotations\nThis class helps reading annotations.\n\n![PHP from Packagist](https://img.shields.io/packagist/php-v/markuszeller/php-annotations/v1.0.0.svg)\n![Install with Composer)](https://img.shields.io/badge/composer-markuszeller%2Fphp--annotations-blue.svg)\n\n## Features\n\n- reads from a string\n- reads from a file\n- supports multiline annotation values\n- auto trims values\n\n## Note\nReads only annotations from DocComments included in `/** [...] */`.\n\nLook into that **double asterisk**.\n\n## Usage\n\nInitialise an Annotation object\n\n    require_once '../vendor/autoload.php';\n    use markuszeller\\Annotations\\Reader;\n\n    $reader = new Reader();\n\nPut some data into the annotation reader instance\n\n* by a string\n\n        $cssString = file_get_contents('./template.css');\n        $reader-\u003eloadFromString($cssString);\n\n* by file\n\n        if($reader-\u003eloadFromFile(\"./example.css\") === false) {\n            exit(\"Error loading file\");\n        }\n\n\nGet all the annotations as an associative array\n    \n    $annotationArray = $reader-\u003egetAnnotations();\n\nGet a single annotation by name\n\n    $title = $reader-\u003egetAnnotation('title');\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkuszeller%2Fphp-annotations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkuszeller%2Fphp-annotations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkuszeller%2Fphp-annotations/lists"}