{"id":3918324,"name":"github.com/tinkerun/php-parser","ecosystem":"go","description":"A Parser for PHP written in Go Features: * Fully support PHP5 and PHP7 syntax * Abstract syntax tree representation * Traversing AST * Namespace resolver Install: go get github.com/z7zmey/php-parser CLI dumper: $GOPATH/bin/php-parser -php5 /path/to/file/or/dir Package usage example: package main import ( \"fmt\" \"bytes\" \"os\" \"github.com/z7zmey/php-parser/php7\" \"github.com/z7zmey/php-parser/visitor\" ) func main() { src := bytes.NewBufferString(`\u003c? echo \"Hello world\";`) parser := php7.NewParser(src, \"example.php\") parser.Parse() for _, e := range parser.GetErrors() { fmt.Println(e) } visitor := visitor.Dumper{ Writer: os.Stdout, Indent: \"\", Comments: parser.GetComments(), Positions: parser.GetPositions(), } rootNode := parser.GetRootNode() rootNode.Walk(visitor) }","homepage":"https://github.com/tinkerun/php-parser","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/tinkerun/php-parser","keywords_array":[],"namespace":"github.com/tinkerun","versions_count":12,"first_release_published_at":"2018-02-06T10:52:31.000Z","latest_release_published_at":"2020-07-26T17:15:21.000Z","latest_release_number":"v0.7.2","last_synced_at":"2026-10-01T12:20:49.313Z","created_at":"2022-04-12T01:55:20.432Z","updated_at":"2026-10-01T12:20:49.313Z","registry_url":"https://pkg.go.dev/github.com/tinkerun/php-parser","install_command":"go get github.com/tinkerun/php-parser","documentation_url":"https://pkg.go.dev/github.com/tinkerun/php-parser#section-documentation","metadata":null,"repo_metadata":{"id":57580700,"uuid":"362011472","full_name":"tinkerun/php-parser","owner":"tinkerun","description":"PHP parser written in Go","archived":false,"fork":true,"pushed_at":"2021-04-28T03:11:59.000Z","size":12649,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-09-04T06:23:36.821Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://php-parser.com","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"z7zmey/php-parser","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tinkerun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-27T06:55:51.000Z","updated_at":"2021-04-28T03:12:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tinkerun/php-parser","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/tinkerun/php-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinkerun","download_url":"https://codeload.github.com/tinkerun/php-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/sbom","scorecard":{"id":887212,"data":{"date":"2025-08-11","repo":{"name":"github.com/tinkerun/php-parser","commit":"d0e49ad7c8059ab8fb37f99ca964934c2d2b2a86"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T10:28:13.687Z","repository_id":57580700,"created_at":"2025-08-24T10:28:13.687Z","updated_at":"2025-08-24T10:28:13.687Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":342085742,"owners_count":37901763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-22T15:14:58.755Z","status":"online","status_checked_at":"2026-10-01T02:00:06.691Z","response_time":59,"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"},"owner_record":{"login":"tinkerun","name":"Tinkerun","uuid":"80329226","kind":"organization","description":"A new way to Running Tinker. Simplify the Web Artisan's workflow.","email":null,"website":null,"location":null,"twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/80329226?v=4","repositories_count":8,"last_synced_at":"2024-10-29T17:11:23.504Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/tinkerun","funding_links":[],"total_stars":460,"followers":6,"following":0,"created_at":"2022-11-14T17:10:52.084Z","updated_at":"2024-10-29T17:11:23.505Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinkerun","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinkerun/repositories"},"tags":[{"name":"v0.8.0-rc.1","sha":"4d6130d98d34e61f8f7e811c55416f31d6e7e66c","kind":"commit","published_at":"2020-12-29T19:31:14.000Z","download_url":"https://codeload.github.com/tinkerun/php-parser/tar.gz/v0.8.0-rc.1","html_url":"https://github.com/tinkerun/php-parser/releases/tag/v0.8.0-rc.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/tinkerun/php-parser@v0.8.0-rc.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.8.0-rc.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.8.0-rc.1/manifests"},{"name":"v0.7.2","sha":"cbf185c8f4cf24543bef6d3235c9ab8ddee2b3ab","kind":"commit","published_at":"2020-07-26T17:15:21.000Z","download_url":"https://codeload.github.com/tinkerun/php-parser/tar.gz/v0.7.2","html_url":"https://github.com/tinkerun/php-parser/releases/tag/v0.7.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/tinkerun/php-parser@v0.7.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.7.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.7.2/manifests"},{"name":"v0.7.1","sha":"ee48d84609b4892218840dcd258d162b18a02309","kind":"commit","published_at":"2020-06-14T20:43:52.000Z","download_url":"https://codeload.github.com/tinkerun/php-parser/tar.gz/v0.7.1","html_url":"https://github.com/tinkerun/php-parser/releases/tag/v0.7.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/tinkerun/php-parser@v0.7.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.7.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.7.1/manifests"},{"name":"v0.7.0","sha":"d7e0c8f6daad9e53a1d0388ac978305df3b05019","kind":"commit","published_at":"2020-03-09T11:55:35.000Z","download_url":"https://codeload.github.com/tinkerun/php-parser/tar.gz/v0.7.0","html_url":"https://github.com/tinkerun/php-parser/releases/tag/v0.7.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/tinkerun/php-parser@v0.7.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.7.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.7.0/manifests"},{"name":"v0.6.1","sha":"c97ca17c6aceae830f4981388877cd2535ee3607","kind":"commit","published_at":"2019-08-20T18:51:45.000Z","download_url":"https://codeload.github.com/tinkerun/php-parser/tar.gz/v0.6.1","html_url":"https://github.com/tinkerun/php-parser/releases/tag/v0.6.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/tinkerun/php-parser@v0.6.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.6.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.6.1/manifests"},{"name":"v0.6.0","sha":"d07e2343934faaac6be1e643d229b9924c13b710","kind":"commit","published_at":"2019-02-25T16:17:56.000Z","download_url":"https://codeload.github.com/tinkerun/php-parser/tar.gz/v0.6.0","html_url":"https://github.com/tinkerun/php-parser/releases/tag/v0.6.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/tinkerun/php-parser@v0.6.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.6.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.6.0/manifests"},{"name":"v0.5.1","sha":"290645f3c92c7e725d9cd04aaacdddbd9cedcd28","kind":"commit","published_at":"2018-06-26T09:22:51.000Z","download_url":"https://codeload.github.com/tinkerun/php-parser/tar.gz/v0.5.1","html_url":"https://github.com/tinkerun/php-parser/releases/tag/v0.5.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/tinkerun/php-parser@v0.5.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.5.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.5.1/manifests"},{"name":"v0.5.0","sha":"9f0d4b02c278f4601bb10d16da814d783a821740","kind":"commit","published_at":"2018-06-07T16:52:44.000Z","download_url":"https://codeload.github.com/tinkerun/php-parser/tar.gz/v0.5.0","html_url":"https://github.com/tinkerun/php-parser/releases/tag/v0.5.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/tinkerun/php-parser@v0.5.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.5.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.5.0/manifests"},{"name":"v0.4.0","sha":"624dc4f498c50b58a47095d7fecc070b5b1e728e","kind":"commit","published_at":"2018-04-06T12:23:33.000Z","download_url":"https://codeload.github.com/tinkerun/php-parser/tar.gz/v0.4.0","html_url":"https://github.com/tinkerun/php-parser/releases/tag/v0.4.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/tinkerun/php-parser@v0.4.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.4.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.4.0/manifests"},{"name":"v0.3.0","sha":"411967e87efaf1e761afc28381166a4d77a4237f","kind":"commit","published_at":"2018-03-01T20:31:36.000Z","download_url":"https://codeload.github.com/tinkerun/php-parser/tar.gz/v0.3.0","html_url":"https://github.com/tinkerun/php-parser/releases/tag/v0.3.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/tinkerun/php-parser@v0.3.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.3.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.3.0/manifests"},{"name":"v0.2.0","sha":"757f57c2236547542e400f6d1b72af447135863c","kind":"commit","published_at":"2018-02-19T09:44:52.000Z","download_url":"https://codeload.github.com/tinkerun/php-parser/tar.gz/v0.2.0","html_url":"https://github.com/tinkerun/php-parser/releases/tag/v0.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/tinkerun/php-parser@v0.2.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.2.0/manifests"},{"name":"v0.1.0","sha":"1824f2e5f0f020c918f4a54bdf9a4cecdfb0da8f","kind":"commit","published_at":"2018-02-06T10:52:31.000Z","download_url":"https://codeload.github.com/tinkerun/php-parser/tar.gz/v0.1.0","html_url":"https://github.com/tinkerun/php-parser/releases/tag/v0.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/tinkerun/php-parser@v0.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/tags/v0.1.0/manifests"}]},"repo_metadata_updated_at":"2026-10-01T12:20:48.943Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":9.345852080216646,"dependent_packages_count":6.999148183520997,"stargazers_count":null,"forks_count":null,"average":8.172500131868823},"purl":"pkg:golang/github.com/tinkerun/php-parser","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/tinkerun/php-parser","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/tinkerun/php-parser","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/tinkerun/php-parser/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2026-09-04T23:39:13.608Z","issues_count":0,"pull_requests_count":0,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":0,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":null,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinkerun%2Fphp-parser/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Ftinkerun%2Fphp-parser/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Ftinkerun%2Fphp-parser/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Ftinkerun%2Fphp-parser/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Ftinkerun%2Fphp-parser/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Ftinkerun%2Fphp-parser/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Ftinkerun%2Fphp-parser/codemeta","maintainers":[]}