{"id":18449488,"url":"https://github.com/wpsocio/telegram-format-text","last_synced_at":"2026-02-13T17:16:36.702Z","repository":{"id":218893224,"uuid":"747627091","full_name":"wpsocio/telegram-format-text","owner":"wpsocio","description":"Production Repository | HTML to Text converter/formatter for Telegram Bot API. Development takes place in our monorepo - https://github.com/wpsocio/wp-projects/tree/main/packages/php/telegram-format-text","archived":false,"fork":false,"pushed_at":"2025-07-30T09:47:47.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-22T20:40:33.370Z","etag":null,"topics":["formatter","html","telegram","text"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/wpsocio/telegram-format-text","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wpsocio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2024-01-24T10:16:05.000Z","updated_at":"2025-07-30T09:47:50.000Z","dependencies_parsed_at":"2024-01-24T12:03:25.472Z","dependency_job_id":"1423bf1e-4339-4543-8b83-2ed9152c0845","html_url":"https://github.com/wpsocio/telegram-format-text","commit_stats":null,"previous_names":["wpsocio/telegram-format-text"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/wpsocio/telegram-format-text","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpsocio%2Ftelegram-format-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpsocio%2Ftelegram-format-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpsocio%2Ftelegram-format-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpsocio%2Ftelegram-format-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpsocio","download_url":"https://codeload.github.com/wpsocio/telegram-format-text/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpsocio%2Ftelegram-format-text/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29412847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["formatter","html","telegram","text"],"created_at":"2024-11-06T07:20:19.498Z","updated_at":"2026-02-13T17:16:36.679Z","avatar_url":"https://github.com/wpsocio.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WPSocio\\TelegramFormatText\n\nHTML to Text converter/formatter for [Telegram Bot API](https://core.telegram.org/bots/api#formatting-options)\n\nInspired by [thephpleague/html-to-markdown](https://github.com/thephpleague/html-to-markdown).\n\n## Usage\n\n```bash\ncomposer require wpsocio/telegram-format-text\n```\n\n```php\nrequire_once __DIR__ . '/autoload.php';\n\n$html = 'Some html here';\n\n$options = [\n\t'format_to' =\u003e 'Markdown',\n];\n$converter = new \\WPSocio\\TelegramFormatText\\HtmlConverter( $options );\n\n// The text is now safe to be sent to Telegram\n$text = $converter-\u003econvert( $html );\n```\n\n## Requirements\n\n- `PHP \u003e= 8.0`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpsocio%2Ftelegram-format-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpsocio%2Ftelegram-format-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpsocio%2Ftelegram-format-text/lists"}