{"id":42029403,"url":"https://github.com/lebedevsergey/odt2xhtml","last_synced_at":"2026-01-26T04:30:57.019Z","repository":{"id":57013416,"uuid":"338257460","full_name":"lebedevsergey/odt2xhtml","owner":"lebedevsergey","description":"PHP library for converting Open Document Format documents to HTML","archived":false,"fork":false,"pushed_at":"2021-02-12T10:16:56.000Z","size":93,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T02:17:00.895Z","etag":null,"topics":["converter","odf","php","php7"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lebedevsergey.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":"2021-02-12T08:06:30.000Z","updated_at":"2021-04-21T21:20:12.000Z","dependencies_parsed_at":"2022-08-21T13:40:54.639Z","dependency_job_id":null,"html_url":"https://github.com/lebedevsergey/odt2xhtml","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lebedevsergey/odt2xhtml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lebedevsergey%2Fodt2xhtml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lebedevsergey%2Fodt2xhtml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lebedevsergey%2Fodt2xhtml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lebedevsergey%2Fodt2xhtml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lebedevsergey","download_url":"https://codeload.github.com/lebedevsergey/odt2xhtml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lebedevsergey%2Fodt2xhtml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28766886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T03:54:34.369Z","status":"ssl_error","status_checked_at":"2026-01-26T03:54:33.031Z","response_time":59,"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":["converter","odf","php","php7"],"created_at":"2026-01-26T04:30:56.327Z","updated_at":"2026-01-26T04:30:57.014Z","avatar_url":"https://github.com/lebedevsergey.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ODT2XHTML #\n\n### What is it? ###\n* ODT2XHTML is a small library for converting documents in Open Document Format to HTML. \n* Supports most ODF text formatting features including embedded images, lists, tables, subscripts, supescripts, etc.\n* \u003ci\u003eBased on heavily refactored code from [Odt2Xhtml library](https://github.com/hucste/Odt2Xhtml) by Stéphane HUC. \nExample ODF files are taken from original library\u003c/i\u003e\n\n### How to use it? ###\n* Add ODT2XHTML to your project `composer require lebedevsergey/odt2xhtml`\n* create ODT2XHTML object: `$converter = new ODT2XHTML()`\n* call `convert` method: `$converter-\u003econvert($ODTFilePath, $ODTHTMLPath, true);`\n\nwhere: \n- `$ODTFilePath` - path to Open Office document to convert\n- `$ODTHTMLPath` - path to the resulted HTML folder, HTML file name will be the same as the Open Office document file name\nbut with `.html` extension\n- the third value is the boolean flag whether resulted CSS styles will be embedded into generated HTML file or will be in a separate CSS file \n\nSee also included example code in `example.php`.\n\n### What else? ###\n* supports files in: \n    * Open Document Format with extensions: `.odb, .odc, .odf, .odg, .odi, .odp, .ods, .odt, .odm, .otg, .oth, .otp, .ots, .ott` \n    * StarOffice format with extensions: `.stc, .std, .sti, .stw, .sxc, .sxd, .sxg, .sxi, .sxm, .sxw`\n* PHP 5.6 or higher is required\n\n### Authors? ###\n* base code \u0026copy; 2007-2011 Stéphane HUC\n* \u0026copy; 2020 Sergey Lebedev, licensed under the Apache License, Version 2.0\n* Feel free to contact me at:\n    * https://habrahabr.ru/users/sunman/\n    * http://stackoverflow.com/users/7135046/sergeylebedev\n    * https://www.facebook.com/sergei.lebedev.5891\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flebedevsergey%2Fodt2xhtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flebedevsergey%2Fodt2xhtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flebedevsergey%2Fodt2xhtml/lists"}