{"id":36266055,"url":"https://github.com/infoway9/laravel-mpdf","last_synced_at":"2026-01-11T08:03:41.590Z","repository":{"id":56991254,"uuid":"165634524","full_name":"infoway9/laravel-mpdf","owner":"infoway9","description":"mPDF package for Laravel 5+","archived":false,"fork":false,"pushed_at":"2019-01-14T11:34:41.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-15T11:04:35.009Z","etag":null,"topics":["laravel","laravel-5-package","mpdf","php"],"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/infoway9.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":"2019-01-14T09:37:14.000Z","updated_at":"2019-02-13T11:25:38.000Z","dependencies_parsed_at":"2022-08-21T12:20:28.191Z","dependency_job_id":null,"html_url":"https://github.com/infoway9/laravel-mpdf","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/infoway9/laravel-mpdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infoway9%2Flaravel-mpdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infoway9%2Flaravel-mpdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infoway9%2Flaravel-mpdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infoway9%2Flaravel-mpdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infoway9","download_url":"https://codeload.github.com/infoway9/laravel-mpdf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infoway9%2Flaravel-mpdf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28297984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T04:44:51.577Z","status":"ssl_error","status_checked_at":"2026-01-11T04:44:44.232Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["laravel","laravel-5-package","mpdf","php"],"created_at":"2026-01-11T08:03:40.182Z","updated_at":"2026-01-11T08:03:41.573Z","avatar_url":"https://github.com/infoway9.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel mPDF: mPDF wrapper for Laravel 5+\n\n\u003e Generate PDF documents from raw HTML or laravel blade file using the laravel\n\n## Installation\n\nRequire this package in your `composer.json` or install it by running:\n\n```\ncomposer require infoway9/laravel-mpdf\n```\n\n\u003e Note: This package supports auto-discovery features of Laravel 5.4+, You only need to manually add the service provider and alias if working on Laravel version lower then 5.5\n\nTo start using Laravel, add the Service Provider and the Facade to your `config/app.php`:\n\n```php\n'providers' =\u003e [\n\t// ...\n\tInfoway\\mPdf\\mPdfServiceProvider::class\n]\n```\n\n```php\n'aliases' =\u003e [\n\t// ...\n\t'PDF' =\u003e Infoway\\mPdf\\Facades\\Pdf::class\n]\n```\n\nNow, you should publish package's config file to your config directory by using following command:\n\n```\nphp artisan vendor:publish --tag=laravel-mpdf\n```\n\n## Basic Usage\nThis is the basic usage of this package.\n\n```php\n\u003c?php\nnamespace App\\Http\\Controllers;\n\nuse App\\Http\\Controllers\\Controller;\nuse PDF;\n\nclass HomeController extends Controller {\n\n    public function index() {\n        $data = [\n    \t\t'foo' =\u003e 'bar'\n    \t];\n        PDF::loadView('pdf',$data)-\u003edownload('abc.pdf');\n    }\n\n}\n\n```\n\n## Other methods\n\nAll available methods of `pdf` object are:\n\n`output()`: Outputs the PDF as a string.  \n`save($filename)`: Save the PDF to a file  \n`download($filename)`: Make the PDF and download it.\n`stream($filename)`: Return a response with the PDF to show in the browser.\n## License\n\nLaravel PDF is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfoway9%2Flaravel-mpdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfoway9%2Flaravel-mpdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfoway9%2Flaravel-mpdf/lists"}