{"id":23529887,"url":"https://github.com/mnvx/lowrapper","last_synced_at":"2025-05-15T17:04:30.731Z","repository":{"id":37587645,"uuid":"79386365","full_name":"mnvx/lowrapper","owner":"mnvx","description":"PHP wrapper over LibreOffice converter","archived":false,"fork":false,"pushed_at":"2024-11-26T15:33:40.000Z","size":709,"stargazers_count":125,"open_issues_count":7,"forks_count":38,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-11T23:57:43.347Z","etag":null,"topics":["docx","docx-generator","html","libreoffice","libreoffice-converter","pdf","pdf-converter","pdf-generation"],"latest_commit_sha":null,"homepage":null,"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/mnvx.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-18T21:30:25.000Z","updated_at":"2024-11-30T21:34:12.000Z","dependencies_parsed_at":"2025-01-08T23:11:44.854Z","dependency_job_id":"bc0a7f35-d511-40e3-8c2f-27cda41b99ae","html_url":"https://github.com/mnvx/lowrapper","commit_stats":{"total_commits":33,"total_committers":12,"mean_commits":2.75,"dds":"0.48484848484848486","last_synced_commit":"0c9b5ddb5edd924c307dbbdc1570052153116dd0"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnvx%2Flowrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnvx%2Flowrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnvx%2Flowrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnvx%2Flowrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mnvx","download_url":"https://codeload.github.com/mnvx/lowrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254384987,"owners_count":22062422,"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":["docx","docx-generator","html","libreoffice","libreoffice-converter","pdf","pdf-converter","pdf-generation"],"created_at":"2024-12-25T21:14:07.623Z","updated_at":"2025-05-15T17:04:30.712Z","avatar_url":"https://github.com/mnvx.png","language":"PHP","funding_links":[],"categories":["Table of Contents"],"sub_categories":["Globalization"],"readme":"Master Status: [![Build Status](https://travis-ci.org/mnvx/lowrapper.png?branch=master)](https://travis-ci.org/mnvx/lowrapper) \n\n# PHP wrapper over LibreOffice converter\nSimple way for documents conversion into various formats.\n\nFor example: html -\u003e docx, html -\u003e pdf, docx -\u003e html and many more.\n\n![Formats](examples/formats.jpg \"Formats\")\n\n## Usage\n\n```php\nuse Mnvx\\Lowrapper\\Converter;\nuse Mnvx\\Lowrapper\\LowrapperParameters;\nuse Mnvx\\Lowrapper\\Format;\n\n// Create converter\n$converter = new Converter();\n\n// Describe parameters for converter\n$parameters = (new LowrapperParameters())\n    // HTML document\n    -\u003esetInputFile('test.html')\n    // Format of result document is docx\n    -\u003esetOutputFormat(Format::TEXT_DOCX)\n    // Result file name\n    -\u003esetOutputFile('path-to-result-docx.docx');\n\n// Run converter\n$converter-\u003econvert($parameters);\n```\n\nMore [examples](/examples)\n\n## Requirements\n\n- PHP 5.5+\n- libreoffice-core\n\n## Installation\n\n```bash\nsudo add-apt-repository ppa:libreoffice/ppa\nsudo apt-get update\nsudo apt-get install default-jdk -y\nsudo apt-get install python-software-properties  -y\nsudo apt-get install software-properties-common -y\nsudo apt-get install libreoffice-core --no-install-recommends\nsudo apt-get install libreoffice-writer\ncomposer require mnvx/lowrapper\n```\n\nExample of installation libreoffice into docker container:\n\n```dockerfile\nFROM php:7.2-fpm\n\nWORKDIR /var/www/html\n\n# Install libreoffice headless\nRUN apt update -y \\\n    \u0026\u0026 mkdir -p /usr/share/man/man1 \\\n    \u0026\u0026 apt -y install default-jdk-headless libreoffice-core libreoffice-writer libreoffice-calc\nRUN mkdir -p /var/www/.cache/dconf \\\n    \u0026\u0026 mkdir -p /var/www/.config/libreoffice \\\n    \u0026\u0026 chmod -R ugo+rwx /var/www/.cache \\\n    \u0026\u0026 chmod -R ugo+rwx /var/www/.config\n```\n\n## Run tests\n\n```bash\n./vendor/bin/phpunit\n```\n\n## License\n\nReleased under the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnvx%2Flowrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmnvx%2Flowrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnvx%2Flowrapper/lists"}