{"id":15106881,"url":"https://github.com/willmav5000/laravel-mpdf","last_synced_at":"2025-09-27T05:31:20.975Z","repository":{"id":57080846,"uuid":"152271423","full_name":"willmav5000/laravel-mpdf","owner":"willmav5000","description":"mPDF wrapper for laravel inspired by laravel-dompdf","archived":false,"fork":true,"pushed_at":"2018-10-09T15:34:46.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-15T08:08:23.103Z","etag":null,"topics":["laravel","laravel-5-package","laravel-framework","laravel-package","mpdf","pdf","pdf-generation"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"praem90/laravel-mpdf","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willmav5000.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-09T15:01:54.000Z","updated_at":"2018-10-09T16:09:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/willmav5000/laravel-mpdf","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/willmav5000%2Flaravel-mpdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willmav5000%2Flaravel-mpdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willmav5000%2Flaravel-mpdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willmav5000%2Flaravel-mpdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willmav5000","download_url":"https://codeload.github.com/willmav5000/laravel-mpdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234391379,"owners_count":18824809,"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":["laravel","laravel-5-package","laravel-framework","laravel-package","mpdf","pdf","pdf-generation"],"created_at":"2024-09-25T21:02:34.163Z","updated_at":"2025-09-27T05:31:20.652Z","avatar_url":"https://github.com/willmav5000.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mPDF wrapper for laravel inspired by [laravel-dompdf](https://github.com/barryvdh/laravel-dompdf)\n\nRequire this package in your composer.json and update composer.\n```\ncomposer require willmav5000/laravel-mpdf\n```\n\n## Installation\n### Laravel 5.x\nAfter updating composer, add the ServiceProvider to the providers array in config/app.php\n\n    Willmav5000\\PDF\\ServiceProvider::class,\n\nYou can optionally use the facade for shorter code. Add this to your facades:\n\n    'PDF' =\u003e Willmav5000\\PDF\\Facade::class,\n\n## Using\n\nUse 'PDF' Facade to interact with mPdf object\n\n```\n    $pdf = PDF::loadView('pdf.invoice', $data); // or PDF::loadHtml($html);\n    return $pdf-\u003edownload($filename); // or\n    return $pdf-\u003estream($filename);\n```\nYou can access all the available mPDF methods directly by the same facade.\neg.,\n```\n    $pdf-\u003esetColumns(2);\n    $pdf-\u003eloadView($blade_path1, $data1); // or $pdf-\u003eloadHtml($html) or $pdf-\u003eWriteHTML('html)\n    $pdf-\u003eaddColumn();\n    $pdf-\u003eloadView($blade_path2, $data2);\n``` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillmav5000%2Flaravel-mpdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillmav5000%2Flaravel-mpdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillmav5000%2Flaravel-mpdf/lists"}