{"id":13910406,"url":"https://github.com/pH-7/Html2Text","last_synced_at":"2025-07-18T09:31:24.400Z","repository":{"id":57674230,"uuid":"482784020","full_name":"pH-7/Html2Text","owner":"pH-7","description":"A very simple (but efficient) \"HTML to plain text\" converter ✍️","archived":false,"fork":false,"pushed_at":"2023-06-11T16:54:58.000Z","size":23,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-11T08:48:51.153Z","etag":null,"topics":["converter","convertor","email-text-parsing","html-converter","html-text-conversion","html2text","htmltotext","php","php7","plain-text","symfony-mailer","text","text-converter","text-convertor"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/ph-7/html-to-text","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/pH-7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"pH-7","ko_fi":"phenry"}},"created_at":"2022-04-18T09:11:40.000Z","updated_at":"2025-02-26T16:48:59.000Z","dependencies_parsed_at":"2024-05-04T23:31:05.811Z","dependency_job_id":"9c5bbca9-72fe-4c7a-8ab1-78ba865d4ef3","html_url":"https://github.com/pH-7/Html2Text","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"fe0a850cc930b729dfe28df46ebb4bd1bb3864bf"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/pH-7/Html2Text","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FHtml2Text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FHtml2Text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FHtml2Text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FHtml2Text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pH-7","download_url":"https://codeload.github.com/pH-7/Html2Text/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FHtml2Text/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265014662,"owners_count":23698317,"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","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":["converter","convertor","email-text-parsing","html-converter","html-text-conversion","html2text","htmltotext","php","php7","plain-text","symfony-mailer","text","text-converter","text-convertor"],"created_at":"2024-08-07T00:01:21.188Z","updated_at":"2025-07-18T09:31:24.155Z","avatar_url":"https://github.com/pH-7.png","language":"PHP","readme":"# HTML to Plain Text\n\nA simple lightweight \"**HTML to Plain Text**\" converter 🪄\n\n\n## 📄 Overview\n\n[![Ko Fi - Offer Me A Coffee](media/kofi-logo.png)](https://ko-fi.com/phenry)\n\n**Simple. Clean. Efficient.** Just what you need to convert HTML code into plain text 🧹\n\n\n## 🐘 PHP Requirement\n\n* [PHP v7.4](https://www.php.net/releases/7_4_0.php) or newer.\n\n\n## 🛠 Installation\n\n```\ncomposer require ph-7/html-to-text\n```\n\nIf you don't already use composer in your project, include [Composer's autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading) as shown below in your main PHP index file of your project.\n\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n```\n\n\n## 🥳 Usage\n\n```php\nuse PH7\\HtmlToText\\Convert;\n\n$htmlCode = '\u003cdiv\u003e\u003cp\u003e\u003cem\u003eSome random paragraphs...\u003c/em\u003e\u003c/p\u003e\u003c/div\u003e';\n\n$this-\u003ehtml2Text = new Convert($htmlCode);\n$plainText = $this-\u003ehtml2Text-\u003egetText();\n\necho $plainText;\n```\n\n\n## 😋 Who cooked it?\n\n[![Pierre-Henry Soria](https://s.gravatar.com/avatar/a210fe61253c43c869d71eaed0e90149?s=200)](https://ph7.me 'Pierre-Henry Soria personal website')\n\n[![@phenrysay][twitter-image]](https://twitter.com/phenrysay) [![pH-7][github-image]](https://github.com/pH-7)\n\n**[Pierre-Henry Soria](https://ph7.me)**. A super passionate, zen \u0026amp; pragmatic software engineer 😊 Cheese \u0026 dark chocolate lover! 🧀🍫😋\n\n️☕️ Are you enjoying it...? You could **[offer me a coffee](https://ko-fi.com/phenry)** if you wish 😋\n\n\n## Projects using it 🚀\n\n* [pH7Builder](https://github.com/pH7Software/pH7-Social-Dating-CMS) - [composer.json](https://github.com/pH7Software/pH7-Social-Dating-CMS/blob/99e16af40cbc9bb4de64d1c32e5c49f54a4717c2/composer.json#L73)\n\n\n## ⚖️ License\n\n**HTML to Text** is generously distributed under _[MIT](https://opensource.org/licenses/MIT)_ 🎉 Enjoy!\n\n\n\u003c!-- GitHub's Markdown reference links --\u003e\n[twitter-image]: https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge\u0026logo=twitter\u0026logoColor=white\n[github-image]: https://img.shields.io/badge/GitHub-100000?style=for-the-badge\u0026logo=github\u0026logoColor=white\n","funding_links":["https://github.com/sponsors/pH-7","https://ko-fi.com/phenry"],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FpH-7%2FHtml2Text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FpH-7%2FHtml2Text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FpH-7%2FHtml2Text/lists"}