{"id":19879964,"url":"https://github.com/evnix/go-php-parser","last_synced_at":"2025-10-15T07:16:56.354Z","repository":{"id":57603958,"uuid":"41561179","full_name":"evnix/go-php-parser","owner":"evnix","description":"simple php parser written in GO","archived":false,"fork":false,"pushed_at":"2015-08-28T17:53:51.000Z","size":5064,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-02T13:46:04.423Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evnix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-28T17:50:08.000Z","updated_at":"2024-09-30T01:41:50.000Z","dependencies_parsed_at":"2022-09-04T10:31:48.591Z","dependency_job_id":null,"html_url":"https://github.com/evnix/go-php-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/evnix/go-php-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evnix%2Fgo-php-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evnix%2Fgo-php-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evnix%2Fgo-php-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evnix%2Fgo-php-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evnix","download_url":"https://codeload.github.com/evnix/go-php-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evnix%2Fgo-php-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279059066,"owners_count":26094886,"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","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"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-12T17:09:52.362Z","updated_at":"2025-10-15T07:16:54.221Z","avatar_url":"https://github.com/evnix.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"php\n===\n\nParser for PHP written in Go\n\n\n## Project Status\n\nThis project is under heavy development, though some pieces are more or less stable. Listed here are components that in progress or are ideas for future development\n\nFeature                       |Status\n------------------------------|------\nLexer and Parser              | mostly complete. there are probably a few gaps still\nScoping                       | complete for simple cases. probably some gaps still, most notably that conditional definitions are treated as if they are always defined\nCode search and symbol lookup | basic idea implemented, many many details missing\nCode formatting               | basic idea implemented, formatting needs to narrow down to PSR-2\nTranspilation to Go           | basic idea implemented, need follow through with more node types\nType inferencing              | not begun\nDead code analysis            | basic idea implemented, but only for some types of code. Also, this suffers from the same caveats as scoping\n\n## Project Components\n\nDirectory                     |Description\n------------------------------|------\nphp| the core parser\nphp/ast| (abstract syntax tree) describes the nodes in PHP as parsed by the parser\nphp/ast/printer| prints an ast back to source code\nphp/cmd| a tool used to debug the parser\nphp/lexer| reads a stream of tokens from source code\nphp/passes| tools and packages related to modifying or analyzing PHP code (heavily a work in progress)\nphp/passes/togo| transpiler\nphp/passes/deadcode| dead code analyzer\nphp/query| tools and packages related to analyzing and finding things in PHP code (heavily a work in progress)\nphp/testdata| simple examples of PHP that must parse with no errors for tests to pass\nphp/token| describes the tokens read by the lexer\n\noriginal fork: https://github.com/stephens2424/php\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevnix%2Fgo-php-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevnix%2Fgo-php-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevnix%2Fgo-php-parser/lists"}