{"id":18320228,"url":"https://github.com/gedex/wphd","last_synced_at":"2026-07-19T00:32:29.181Z","repository":{"id":43625241,"uuid":"71672469","full_name":"gedex/wphd","owner":"gedex","description":"The wphd package allows Go programs to retrieve header data from plugin and theme file headers.","archived":false,"fork":false,"pushed_at":"2016-10-23T00:49:08.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-29T16:13:36.482Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/gedex.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":"2016-10-23T00:04:02.000Z","updated_at":"2016-10-23T00:04:15.000Z","dependencies_parsed_at":"2022-07-12T18:19:25.038Z","dependency_job_id":null,"html_url":"https://github.com/gedex/wphd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gedex/wphd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fwphd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fwphd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fwphd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fwphd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gedex","download_url":"https://codeload.github.com/gedex/wphd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fwphd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35636543,"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-18T02:00:07.223Z","response_time":61,"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-05T18:15:36.096Z","updated_at":"2026-07-19T00:32:29.152Z","avatar_url":"https://github.com/gedex.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"wphd\n====\n\n\u003e WordPress [Header Data](https://codex.wordpress.org/File_Header) parser.\n\nThe wphd package allows Go programs to retrieve header data from plugin and \ntheme file headers.\n\n[![Build Status](https://travis-ci.org/gedex/wphd.png?branch=master)](https://travis-ci.org/gedex/wphd)\n[![Coverage Status](https://coveralls.io/repos/gedex/wphd/badge.png?branch=master)](https://coveralls.io/r/gedex/wphd?branch=master)\n[![GoDoc](https://godoc.org/github.com/gedex/wphd?status.svg)](https://godoc.org/github.com/gedex/wphd)\n\n## Example\n\n~~~go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/gedex/wphd\"\n)\n\nfunc main() {\n\tin := `\u003c?php\n/**\n * @package Hello_Dolly\n * @version 1.6\n */\n/*\nPlugin Name: Hello Dolly\nPlugin URI: https://wordpress.org/plugins/hello-dolly/\nDescription: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from \u003ccite\u003eHello, Dolly\u003c/cite\u003e in the upper right of your admin screen on every page.\nAuthor: Matt Mullenweg\nVersion: 1.6\nAuthor URI: http://ma.tt/\n*/`\n\tp := wphd.GetPluginData([]byte(in))\n\tfmt.Printf(\"%+v\\n\", p)\n\t// Output:\n\t// \u0026{Name:Hello Dolly PluginURI:https://wordpress.org/plugins/hello-dolly/ Version:1.6 Description:This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from \u003ccite\u003eHello, Dolly\u003c/cite\u003e in the upper right of your admin screen on every page. Author:Matt Mullenweg AuthorURI:http://ma.tt/ TextDomain: DomainPath: Network:false License: LicenseURI:}\n}\n~~~\n\n## Known Limitations\n\n* Return the raw value for each field\n* No translation for each field\n* Markup is not applied for each field\n* Extra fields are not considered\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgedex%2Fwphd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgedex%2Fwphd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgedex%2Fwphd/lists"}