{"id":16556512,"url":"https://github.com/hemant-mann/phpexport","last_synced_at":"2026-01-06T18:57:04.442Z","repository":{"id":34340082,"uuid":"38260753","full_name":"Hemant-Mann/PHPExport","owner":"Hemant-Mann","description":"Export data to .txt, .csv, .docx, .odt, .xml format using this library","archived":false,"fork":false,"pushed_at":"2016-05-14T18:31:33.000Z","size":467,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T23:57:35.111Z","etag":null,"topics":["csv","data-export","doc","mysql-export","php","xml"],"latest_commit_sha":null,"homepage":"","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/Hemant-Mann.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":"2015-06-29T17:25:57.000Z","updated_at":"2019-03-27T11:31:31.000Z","dependencies_parsed_at":"2022-09-14T04:02:15.124Z","dependency_job_id":null,"html_url":"https://github.com/Hemant-Mann/PHPExport","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hemant-Mann%2FPHPExport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hemant-Mann%2FPHPExport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hemant-Mann%2FPHPExport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hemant-Mann%2FPHPExport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hemant-Mann","download_url":"https://codeload.github.com/Hemant-Mann/PHPExport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246163475,"owners_count":20733606,"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":["csv","data-export","doc","mysql-export","php","xml"],"created_at":"2024-10-11T20:04:55.915Z","updated_at":"2026-01-06T18:57:04.401Z","avatar_url":"https://github.com/Hemant-Mann.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHPExport #\n\n## Description\nIt is library built in PHP to export data from the database to MSWord, ODT, and XML files.\nThe process to make docx and odt files is tricky but with a little help it can be understood\n\n### Setup\n```bash\ngit clone https://github.com/Hemant-Mann/PHPExport.git\n\n# Linux users you need to install 'php5-xsl' extension to export data in WORD Files\nsudo apt-get install php5-xsl  # For Ubuntu Users\n```\n- Import the examples/includes/products.sql into your local database.\n- Setup credentials in examples/includes/db.php\n- Below is a test code. Run in browser. (More usage see 'examples')\n\n```php\n\u003c?php\n\nrequire_once 'Exporter.php';\t// autoloader\nrequire_once 'examples/includes/products_mysqli.php';\n\ntry {\n\t// pass custom options for downloading\n\t$options['suppress'] = 'image';\n\t$options['labelcase'] = 'strtoupper';\n\tnew Text($result, 'products.txt', $options); // this will output the download file\n\t// named 'products.txt'\n} catch (Exception $e) {\n\t$error = $e-\u003egetMessage();\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemant-mann%2Fphpexport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhemant-mann%2Fphpexport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemant-mann%2Fphpexport/lists"}