{"id":33994019,"url":"https://github.com/basdegroot/phpwkhtmltopdflaravel","last_synced_at":"2025-12-13T07:39:32.146Z","repository":{"id":62491923,"uuid":"110814145","full_name":"basdegroot/phpwkhtmltopdflaravel","owner":"basdegroot","description":"Laravel wrapper for the PHP WkHtmlToPdf library","archived":false,"fork":false,"pushed_at":"2017-11-15T12:23:36.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-28T11:31:54.093Z","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/basdegroot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-11-15T09:40:20.000Z","updated_at":"2023-07-13T19:23:40.000Z","dependencies_parsed_at":"2022-11-02T11:16:34.559Z","dependency_job_id":null,"html_url":"https://github.com/basdegroot/phpwkhtmltopdflaravel","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/basdegroot/phpwkhtmltopdflaravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basdegroot%2Fphpwkhtmltopdflaravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basdegroot%2Fphpwkhtmltopdflaravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basdegroot%2Fphpwkhtmltopdflaravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basdegroot%2Fphpwkhtmltopdflaravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/basdegroot","download_url":"https://codeload.github.com/basdegroot/phpwkhtmltopdflaravel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basdegroot%2Fphpwkhtmltopdflaravel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27702093,"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-12-13T02:00:09.769Z","response_time":147,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":"2025-12-13T07:39:31.578Z","updated_at":"2025-12-13T07:39:32.126Z","avatar_url":"https://github.com/basdegroot.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP WkHtmlToPdf Laravel Wrapper\nThis wrapper will include the [mikehaertl/phpwkhtmltopdf](https://github.com/mikehaertl/phpwkhtmltopdf) library. \nIt will use the config functions of laravel and it can be configured threw the .env file. All the functions of the library of mikehaertl \nare available. https://github.com/mikehaertl/phpwkhtmltopdf\n\n## Installation\n\nInstall the package through [composer](http://getcomposer.org):\n\n```\ncomposer require basdegroot/phpwkhtmltopdflaravel\n``` \n\n## Configuration\n\nThe application can be configured threw the .env file or by publishing the configuration files to your project.\n\n### Publish\n\n```\nphp artisan vendor:publish\n```\n\n### .env variables\n```\nWKHTMLTOPDF_BINARY = Path to the binary of the WkHtmlToPdf library. Default is 'wkhmltopdf'\nWKHTMLTOPDF_INGORE_WARNINGS = Whether to ignore any errors if a PDF file was still created. Default is false\nWKHTMLTOPDF_TMP_DIR = Path to tmp directory. Defaults to the PHP temp dir.\n```\n\n## Response \nThe class has an method which returns a Laravel response object with the PDF content + correct headers\n\n```\nuse Basdegroot\\PhpwkhtmltopdfLaravel\\Pdf;\n\n$pdf = new Pdf('http://www.google.nl');\nreturn $pdf-\u003eresponse();\n\n// or with a filename\n\nreturn $pdf-\u003eresponse('filename'); \n\n\n```\n\nThe Pdf object extends \\mikehaertl\\wkhtmlto\\Pdf so all the other methods are still available.\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasdegroot%2Fphpwkhtmltopdflaravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasdegroot%2Fphpwkhtmltopdflaravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasdegroot%2Fphpwkhtmltopdflaravel/lists"}