{"id":16389390,"url":"https://github.com/marcelog/anoforphp","last_synced_at":"2026-06-07T23:30:14.010Z","repository":{"id":139307666,"uuid":"1473042","full_name":"marcelog/AnoForPHP","owner":"marcelog","description":"An experimental patch to PHP/ZendEngine to bring native annotations to PHP","archived":false,"fork":false,"pushed_at":"2011-03-18T15:29:46.000Z","size":428,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T10:28:51.122Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/marcelog.png","metadata":{"files":{"readme":"README","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":"2011-03-12T23:14:51.000Z","updated_at":"2016-05-23T13:21:54.000Z","dependencies_parsed_at":"2023-03-11T13:55:39.064Z","dependency_job_id":null,"html_url":"https://github.com/marcelog/AnoForPHP","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelog%2FAnoForPHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelog%2FAnoForPHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelog%2FAnoForPHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelog%2FAnoForPHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcelog","download_url":"https://codeload.github.com/marcelog/AnoForPHP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240199180,"owners_count":19763820,"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-10-11T04:32:43.988Z","updated_at":"2026-06-07T23:30:13.938Z","avatar_url":"https://github.com/marcelog.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"INSTALL\n=======\n1.- Download the patch.\n2.- Apply with:  patch -p1 \u003c anoforphp-5.3.5.diff\n3.- Compile and install PHP as usual.\n\nBEWARE\n======\nThis is an *experimental* work. I'm not that familiar with the internals of ZendEngine(tm) so I wont promess there wont be any memory leaks, or crashes. It seems stable, but please report any issues you may spot so I can correct them as soon as possible ;)\n\nABOUT\n======\nFirst things first, this patch is made for PHP 5.3.5, but it should be easy to port it to other 5.3.+ versions.\n\nNow, the idea behind this patch is pretty obvious. Annotations are a very popular thing and php lacks of them. Also, it's pretty expensive to have them inside doc blocks (i.e: /** */), so this patch is made mostly for the extension reflection of php and the ZendEngine2(tm).\n\nThe annotation token is \"@@\", because the \"@\" was already taken. So for instance, you would do:\n\n@@AnAnnotation\n@@AnotherAnnotation(\"something\")\n@@AnotherAnnotation(key1=\"value1\")\n@@AnotherAnnotation(key1=\"value1\", key2=\"value2\")\n...\nclass something {\n...\n}\n\nalso:\n\nclass something {\n\t@@AnAnnotation\n\t@@AnotherAnnotation(\"something\")\n\t@@AnotherAnnotation(key1=\"value1\")\n\t@@AnotherAnnotation(key1=\"value1\", key2=\"value2\")\n\t...\n\tpublic function aMethod() {\n\t\t...\n\t}\n}\n\nAnd, best of all:\nclass something {\n\tpublic function aMethod(@@AnAnnotation $a, @@An1 @@An2(key1=\"value1\") $b) {\n\t\t...\n\t}\n}\n\nHomepage\n========\nhttp://marcelog.github.com/\n\nThanks To\n=========\nPierrick Charron (https://github.com/adoy) for this comments on the use of TSRLM macros and also for his issue reports.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelog%2Fanoforphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcelog%2Fanoforphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelog%2Fanoforphp/lists"}