{"id":22258423,"url":"https://github.com/t1gor/documentsparser","last_synced_at":"2025-07-23T03:08:08.452Z","repository":{"id":7675047,"uuid":"9037477","full_name":"t1gor/DocumentsParser","owner":"t1gor","description":"DOCx parser class in php","archived":false,"fork":false,"pushed_at":"2013-04-19T14:09:52.000Z","size":1901,"stargazers_count":2,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T17:04:59.372Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/t1gor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-26T18:38:25.000Z","updated_at":"2024-08-02T07:45:21.000Z","dependencies_parsed_at":"2022-09-13T12:43:00.719Z","dependency_job_id":null,"html_url":"https://github.com/t1gor/DocumentsParser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/t1gor/DocumentsParser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1gor%2FDocumentsParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1gor%2FDocumentsParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1gor%2FDocumentsParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1gor%2FDocumentsParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t1gor","download_url":"https://codeload.github.com/t1gor/DocumentsParser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1gor%2FDocumentsParser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266609308,"owners_count":23955620,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-12-03T08:16:23.321Z","updated_at":"2025-07-23T03:08:08.427Z","avatar_url":"https://github.com/t1gor.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"DOCx files parser\n========\n\nParses the docx file and returns an html string. Any help or critics appreciated.\n\nSupported elements:\n--------------------\n* paragraphs (w:p),\n* images (pic:pic),\n* links (w:hyperlink),\n* tables (w:t),\n* boorkmarks (w:bookmarkStart),\n* lists.\n\nTODO:\n--------------------\n* shapes support\n* table cell styles\n* add links filter\n* images optimization (remove extra equal images)\n* add i18n\n\nKnown issues:\n--------------------\n* memory consuming\n* for big files, executing more than 30 sec (default timout time)\n\nUsage example:\n--------------------\n\n```php\n\u003c?php\n    // load lib\n\trequire_once('DocumentsParser.php');\n\n\t// init parser\n\t$parserSettings = array(\n\t\t'filesDestinationFolder' =\u003e 'images',\n\t);\n\n\t$defaultStyles = array();\n\n\t$parser = new DocumentsParser($parserSettings, $defaultStyles);\n\n\t// parse DOCx\n\t$html = $parser-\u003eparseFile('test_document.docx');\n\n\t// save content to file\n\tfile_put_contents('test_document.html', $html);\n?\u003e\n```\n\nReminder links:\n--------------------\n* Comparing images - http://pastebin.com/wgeu2DqE\n* OpenXML Standards - http://www.schemacentral.com/sc/ooxml/ss.html\n* Awesome XML editor - http://www.oxygenxml.com/download_oxygenxml_developer.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft1gor%2Fdocumentsparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft1gor%2Fdocumentsparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft1gor%2Fdocumentsparser/lists"}