{"id":15984888,"url":"https://github.com/divineomega/php-wikitext-parser","last_synced_at":"2025-10-16T10:01:50.660Z","repository":{"id":56969695,"uuid":"183898833","full_name":"DivineOmega/php-wikitext-parser","owner":"DivineOmega","description":"Parse Wikitext in PHP","archived":false,"fork":false,"pushed_at":"2019-08-26T09:27:19.000Z","size":11,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-21T08:53:44.846Z","etag":null,"topics":["parser","php-library","wikitext","wikitext-parser"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DivineOmega.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":"2019-04-28T11:23:23.000Z","updated_at":"2023-12-26T22:22:39.000Z","dependencies_parsed_at":"2022-08-21T06:40:24.534Z","dependency_job_id":null,"html_url":"https://github.com/DivineOmega/php-wikitext-parser","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/DivineOmega/php-wikitext-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fphp-wikitext-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fphp-wikitext-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fphp-wikitext-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fphp-wikitext-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DivineOmega","download_url":"https://codeload.github.com/DivineOmega/php-wikitext-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fphp-wikitext-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272186219,"owners_count":24888333,"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-08-26T02:00:07.904Z","response_time":60,"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":["parser","php-library","wikitext","wikitext-parser"],"created_at":"2024-10-08T02:11:06.587Z","updated_at":"2025-10-16T10:01:50.597Z","avatar_url":"https://github.com/DivineOmega.png","language":"PHP","readme":"# PHP Wikitext Parser\nThe library provides an easy way to parse Wikitext in PHP.\n\n## Installation\n\nJust run the following Composer command at the root of \nyour project.\n\n```bash\ncomposer require divineomega/php-wikitext-parser\n```\n\n## Usage\n\nThe most basic usage is to convert a Wikitext formatted\nstring to plain text.\n\n```php\n$plainText = (new WikitextParser())\n    -\u003esetWikitext($wikitext)\n    -\u003eparse();\n```\n\n### Alternative Format\n\nYou are also able to specify alternative formats to \nconvert to, using the `setFormat` method. By default, \nthis is set to plain text.\n\nFor example, you can convert Wikitext to HTML, as shown\nbelow.\n\n```php\n$plainText = (new WikitextParser())\n    -\u003esetWikitext($wikitext)\n    -\u003esetFormat(Format::HTML)\n    -\u003eparse();\n```\n\n### Caching\n\nBy default, file caching is used. If you wish, you can\nspecify any PSR-6 compliant caching library. This is\ndone using the `setCache` method as should below.\n\n```php\n$cache = new OtherPsr6CacheItemPool();\n\n$plainText = (new WikitextParser())\n    -\u003esetCache($cache)\n    -\u003esetWikitext($wikitext)\n    -\u003eparse();\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivineomega%2Fphp-wikitext-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivineomega%2Fphp-wikitext-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivineomega%2Fphp-wikitext-parser/lists"}