{"id":20463446,"url":"https://github.com/atiksoftware/php-html_to_pdf","last_synced_at":"2026-05-11T09:35:53.002Z","repository":{"id":166545340,"uuid":"300199340","full_name":"atiksoftware/php-html_to_pdf","owner":"atiksoftware","description":"Convert html to pdf files with smarty template engine. Download as file or display on browser.","archived":false,"fork":false,"pushed_at":"2020-10-01T09:36:24.000Z","size":428,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T00:56:32.933Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atiksoftware.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":"2020-10-01T08:10:13.000Z","updated_at":"2020-10-12T22:10:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"ffe4ea62-5eda-4cba-a58e-aeb17b343017","html_url":"https://github.com/atiksoftware/php-html_to_pdf","commit_stats":null,"previous_names":["atiksoftware/php-html_to_pdf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atiksoftware%2Fphp-html_to_pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atiksoftware%2Fphp-html_to_pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atiksoftware%2Fphp-html_to_pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atiksoftware%2Fphp-html_to_pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atiksoftware","download_url":"https://codeload.github.com/atiksoftware/php-html_to_pdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242023193,"owners_count":20059297,"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":[],"created_at":"2024-11-15T13:11:11.401Z","updated_at":"2026-05-11T09:35:47.983Z","avatar_url":"https://github.com/atiksoftware.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Html To Pdf File\n[![GitHub](https://img.shields.io/badge/Author-Amiral%20Router-blue)]()\n[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fatiksoftware%2Fphp-html_to_pdf)]()\n[![GitHub stars](https://img.shields.io/github/stars/atiksoftware/php-html_to_pdf?color=brightgreen)]()\n[![GitHub contributors](https://img.shields.io/github/contributors/atiksoftware/php-html_to_pdf?color=brightgreen)]()\n[![GitHub issues](https://img.shields.io/github/issues/atiksoftware/php-html_to_pdf?color=blue)]()  \n\nConvert html to pdf files with smarty template engine. Download as file or display on browser.\n  \n\n\u003cimg src=\"https://raw.githubusercontent.com/atiksoftware/php-html_to_pdf/master/readme_images/html.jpg\" width=\"450\" /\u003e \u003cimg src=\"https://raw.githubusercontent.com/atiksoftware/php-html_to_pdf/master/readme_images/pdf.jpg\" width=\"450\" /\u003e\n \n\u003cimg src=\"https://raw.githubusercontent.com/atiksoftware/php-html_to_pdf/master/readme_images/whatsapp.jpg\" width=\"450\" /\u003e\n\n### Needs: \n```bash\n$ composer require smarty/smarty\n$ composer require leafo/lessphp\n$ composer require knplabs/knp-snappy\n```\nAlso you should download `wkhtmltopdf`:  \nif you are in 32/64 bit Windows based system:\n```bash\n$ composer require wemersonjanuario/wkhtmltopdf-windows\n```\nif you are in 32 bit Linux based system:\n```bash\n$ composer require h4cc/wkhtmltopdf-i386 0.12.x\n$ composer require h4cc/wkhtmltoimage-i386 0.12.x\n```\n\nor this if you are in 64 bit based system:\n\n```bash\n$ composer require h4cc/wkhtmltopdf-amd64 0.12.x\n$ composer require h4cc/wkhtmltoimage-amd64 0.12.x\n```\n\n\n\u003e :warning: **If you are using CSS3 properties like Flex,BorderRadius etc**: You should use -webkit prefixes  \nYou can follow https://autoprefixer.github.io/\n---\n## How to use\nIf you have enough experience about PHP, you not need this directive.\n\n+ Create your html files in `html` folder as .tlp(smart format)  \n+ Create your style files in `style` folder as .less format  \n+ first call smarty fetch \n+ then call pdfgenerator functions\n### Also Read Comments in `index.php` \n\n\n\n\n---\n#### If you like this document, you can give a star. Thank you\n**Amiral Router!**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatiksoftware%2Fphp-html_to_pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatiksoftware%2Fphp-html_to_pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatiksoftware%2Fphp-html_to_pdf/lists"}