{"id":18649887,"url":"https://github.com/ashwanthkumar/aro-php","last_synced_at":"2026-07-05T23:31:31.069Z","repository":{"id":2002643,"uuid":"2936205","full_name":"ashwanthkumar/aro-php","owner":"ashwanthkumar","description":"Doc Comment Parsing Wrapper in PHP, used in my final year project","archived":false,"fork":false,"pushed_at":"2016-01-16T16:22:26.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-17T20:36:39.398Z","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/ashwanthkumar.png","metadata":{"files":{"readme":"README.markdown","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-12-07T22:27:29.000Z","updated_at":"2016-01-16T16:22:27.000Z","dependencies_parsed_at":"2022-07-21T11:29:11.687Z","dependency_job_id":null,"html_url":"https://github.com/ashwanthkumar/aro-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ashwanthkumar/aro-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwanthkumar%2Faro-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwanthkumar%2Faro-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwanthkumar%2Faro-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwanthkumar%2Faro-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashwanthkumar","download_url":"https://codeload.github.com/ashwanthkumar/aro-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwanthkumar%2Faro-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35172975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-07T06:41:00.308Z","updated_at":"2026-07-05T23:31:31.051Z","avatar_url":"https://github.com/ashwanthkumar.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)\n\n# ARO - Doc Comment Parsing Wrapper- \n### Module of BlueIgnis \n#### Written by Ashwanth Kumar \\\u003cashwanth@ashwanthkumar.in\\\u003e\n#### Version 0.1\n\n## Introduction\nAn attempt to create a **Doc Comment** Block parsing wrapper, as I was not able to find anything decent to get things done in a simple way without too much dependencies, and being lightweight. Well the name **At the Rate Of (ARO)** is inspired from 2 source, first being usually **At the Rate Of (ARO)** refers to symbol *\"@\"*, and second that's how we represent annotations. \n\n## Design Goals:\n- Improve the parsing method to enable detecting mutli-valued annotation values as in `` @MultiValued(name = \"Name\", visible = \"false\") ``\n\n## Usage Examples:\n\trequire_once(\"/path/to/lib/aro/ARO.php\");\n\t\n\t/**\n\t *\tMock Class small description goes here about the class.\n\t *\n\t *\t@author Ashwanth Kumar\n\t *\t@email\tashwanth@ashwanthkumar.in\n\t *\t@version 0.1\n\t *\t@module AROTest\n\t *\t@Inject ServiceName\n\t **/\n\tclass MockClass {\n\t\t/**\n\t\t *\t@NonVisual Helo\n\t\t **/\n\t\tpublic $non_visual;\n\t\t/**\n\t\t *\t@Visual\n\t\t **/\n\t\tpublic $visual;\n\t\n\t\t/**\n\t\t *\tSample random method that does nothing.\n\t\t *\n\t\t *\t@return void\n\t\t **/\n\t\tpublic function method() {\n\t\t}\n\t}\n\n\t// Invoke any of these classes for parsing the annotations\n\t$reflection = new AnnotatedClass('MockClass');\n\t\n\t$reflection = new AnnotatedMethod('MockClass', 'method');\n\t\n\t$reflection = new AnnotatedProperty('MockClass', 'visual');\n\t\n\t// All these Objects have 3 methods in common\n\t\n\t// Returns a Boolean value whether the Annotation exist \n\t$reflection-\u003ehasAnnotation($annotation_name_to_check);\n\t\n\ttry {\n\t\t// If the Annotation exist, it returns the value, else AnnotationNotFoundException exception is thrown\n\t\t$reflection-\u003egetAnnotation($annotation_name_to_get_value);\n\t} catch(AnnotationNotFoundException $e) {\n\t\t// Handle the exception here\n\t}\n\t\n\t// Get the list of all annotations \n\t$reflection-\u003egetAnnotations(); \n\t\n## Credits\n* The parsing library was initially inspired from [Doqumentor] (http://www.doqumentor.com \"View Docqumentor project website\") project. Thanks to the author for providing me the basic idea to get started. This [blog post] (http://www.murraypicton.com/2011/02/building-a-phpdoc-parser-in-php/) explains the parsing mechanism very well.\n* The `AnnotationParsing` interface is inspired from the [Addendum] (http://code.google.com/p/addendum/wiki/ExtendedReflectionAPI \"Addendum's Extended Reflection API\"). \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwanthkumar%2Faro-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashwanthkumar%2Faro-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwanthkumar%2Faro-php/lists"}