{"id":14975265,"url":"https://github.com/praem90/laravel-mpdf","last_synced_at":"2025-10-27T13:30:22.899Z","repository":{"id":57044180,"uuid":"95028599","full_name":"praem90/laravel-mpdf","owner":"praem90","description":"mPDF wrapper for laravel inspired by laravel-dompdf","archived":false,"fork":false,"pushed_at":"2019-10-03T08:31:10.000Z","size":13,"stargazers_count":1,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T05:41:16.640Z","etag":null,"topics":["laravel-5-package","laravel5","mpdf","pdf"],"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/praem90.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":"2017-06-21T17:22:09.000Z","updated_at":"2019-12-23T13:32:01.000Z","dependencies_parsed_at":"2022-08-24T04:11:17.629Z","dependency_job_id":null,"html_url":"https://github.com/praem90/laravel-mpdf","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praem90%2Flaravel-mpdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praem90%2Flaravel-mpdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praem90%2Flaravel-mpdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praem90%2Flaravel-mpdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/praem90","download_url":"https://codeload.github.com/praem90/laravel-mpdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238497644,"owners_count":19482293,"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-5-package","laravel5","mpdf","pdf"],"created_at":"2024-09-24T13:51:47.735Z","updated_at":"2025-10-27T13:30:22.555Z","avatar_url":"https://github.com/praem90.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 praem90/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    Praem90\\PDF\\ServiceProvider::class,\n\nYou can optionally use the facade for shorter code. Add this to your facades:\n\n    'PDF' =\u003e Praem90\\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); // or\n    \n    $path = storage_path('app/invoices/invoice.pdf');\n    $pdf-\u003esave($path);\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%2Fpraem90%2Flaravel-mpdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpraem90%2Flaravel-mpdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraem90%2Flaravel-mpdf/lists"}