{"id":50336195,"url":"https://github.com/YGGverse/gemtext-php","last_synced_at":"2026-06-15T04:01:06.961Z","repository":{"id":245709424,"uuid":"818964155","full_name":"YGGverse/gemtext-php","owner":"YGGverse","description":"Object-oriented PHP 8 library for Gemini / Gemtext operations","archived":false,"fork":false,"pushed_at":"2024-07-08T02:54:45.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-08T04:52:53.051Z","etag":null,"topics":["composer","gemini","gemini-php","gemini-protocol","gemtext","gemtext-php","library","parser","php","text-gemini"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YGGverse.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-23T11:38:13.000Z","updated_at":"2024-07-08T02:54:48.000Z","dependencies_parsed_at":"2024-09-21T21:02:21.940Z","dependency_job_id":null,"html_url":"https://github.com/YGGverse/gemtext-php","commit_stats":{"total_commits":53,"total_committers":2,"mean_commits":26.5,"dds":"0.018867924528301883","last_synced_commit":"472e588bf3d3f6f43161e5f22a324365ae3f2443"},"previous_names":["yggverse/gemtext-php"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/YGGverse/gemtext-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YGGverse%2Fgemtext-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YGGverse%2Fgemtext-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YGGverse%2Fgemtext-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YGGverse%2Fgemtext-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YGGverse","download_url":"https://codeload.github.com/YGGverse/gemtext-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YGGverse%2Fgemtext-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34346870,"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-06-15T02:00:07.085Z","response_time":63,"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":["composer","gemini","gemini-php","gemini-protocol","gemtext","gemtext-php","library","parser","php","text-gemini"],"created_at":"2026-05-29T14:00:19.060Z","updated_at":"2026-06-15T04:01:06.955Z","avatar_url":"https://github.com/YGGverse.png","language":"PHP","funding_links":[],"categories":["Programming"],"sub_categories":["Graphical"],"readme":"# gemtext-php\n\nLightweight, object-oriented PHP 8 library for [Gemtext](https://geminiprotocol.net/docs/gemtext.gmi) markup\n\n## See also\n\n* [gemini-php](https://github.com/YGGverse/gemini-php) - PHP 8 Client library for Gemini protocol connections\n\n## Integrations\n\n* [gemini-dl](https://github.com/YGGverse/gemini-dl) - CLI batch downloader for Gemini protocol\n* [Yoda](https://github.com/YGGverse/Yoda) - PHP-GTK Browser for Gemini protocol\n\n## Install\n\n``` bash\ncomposer require yggverse/gemtext\n```\n\n## Example\n\n### Parse existing document\n\n``` php\n// Load document from file\n$document = new \\Yggverse\\Gemtext\\Document(\n    file_get_contents(\n        'tests/data/document.gmi'\n    )\n);\n\n// Get links\nforeach ($document-\u003egetLinks() as $link)\n{\n    print(\n        $link-\u003etoString()\n    );\n}\n```\n\n### Create new document\n\n``` php\n// Init new document\n$document = new \\Yggverse\\Gemtext\\Document;\n\n// Append header\n$document-\u003eappend(\n    new \\Yggverse\\Gemtext\\Entity\\Header(\n        'Hello world'\n    )\n);\n\n// Init new link\n$link = new \\Yggverse\\Gemtext\\Entity\\Link(\n    'gemini://geminiprotocol.net',\n    'The Gemini Program',\n    '1965-01-19'\n);\n\n// Change link date\n$link-\u003esetDate(\n    date('Y-m-d')\n);\n\n// Append link\n$document-\u003eappend(\n    $link\n);\n\n// Get gemtext\nprint(\n    $document-\u003etoString()\n);\n\n// Save to file\nfile_put_contents(\n    '/path/to/file.gmi',\n    $document-\u003etoString()\n)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYGGverse%2Fgemtext-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FYGGverse%2Fgemtext-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYGGverse%2Fgemtext-php/lists"}