{"id":15629784,"url":"https://github.com/codedge/laravel-fpdf","last_synced_at":"2025-04-08T08:18:23.852Z","repository":{"id":8727058,"uuid":"59506451","full_name":"codedge/laravel-fpdf","owner":"codedge","description":"Create PDFs with Laravel, provides FPDF version 1.86","archived":false,"fork":false,"pushed_at":"2024-06-03T09:01:16.000Z","size":416,"stargazers_count":271,"open_issues_count":6,"forks_count":77,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-29T15:48:31.598Z","etag":null,"topics":["fpdf","laravel","laravel-fpdf","laravel-package","pdf-generation"],"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/codedge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":"codedge"}},"created_at":"2016-05-23T18:01:10.000Z","updated_at":"2024-10-28T09:33:33.000Z","dependencies_parsed_at":"2024-01-16T11:37:01.677Z","dependency_job_id":"091a84ae-79b7-4578-80ed-c485a0689e19","html_url":"https://github.com/codedge/laravel-fpdf","commit_stats":{"total_commits":194,"total_committers":12,"mean_commits":"16.166666666666668","dds":0.3711340206185567,"last_synced_commit":"b8ee6bcf0e59a574a55d70e5cd07d312a2fda59c"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedge%2Flaravel-fpdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedge%2Flaravel-fpdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedge%2Flaravel-fpdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedge%2Flaravel-fpdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codedge","download_url":"https://codeload.github.com/codedge/laravel-fpdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247801176,"owners_count":20998339,"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":["fpdf","laravel","laravel-fpdf","laravel-package","pdf-generation"],"created_at":"2024-10-03T10:28:45.455Z","updated_at":"2025-04-08T08:18:23.826Z","avatar_url":"https://github.com/codedge.png","language":"PHP","funding_links":["https://github.com/sponsors/codedge"],"categories":[],"sub_categories":[],"readme":"# Laravel package for Fpdf\n\n[![Latest Stable Version](https://poser.pugx.org/codedge/laravel-fpdf/v/stable?format=flat-square)](https://packagist.org/packages/codedge/laravel-fpdf)\n[![Total Downloads](https://poser.pugx.org/codedge/laravel-fpdf/downloads?format=flat-square)](https://packagist.org/packages/codedge/laravel-fpdf)\n[![](https://github.com/codedge/laravel-fpdf/workflows/Tests/badge.svg)](https://github.com/codedge/laravel-fpdf/actions)\n[![StyleCI](https://styleci.io/repos/59506451/shield)](https://styleci.io/repos/59506451)\n[![License](https://poser.pugx.org/codedge/laravel-fpdf/license?format=flat-square)](https://packagist.org/packages/codedge/laravel-fpdf)\n\nUsing [FPDF](http://www.fpdf.org/) made easy with Laravel. See [FPDF homepage](http://www.fpdf.org/) for more information about the usage.\n\n## Installation using [Composer](https://getcomposer.org/)\n\n```sh\ncomposer require codedge/laravel-fpdf\n```\n\n## Configuration\n\nRun  \n`php artisan vendor:publish --provider=\"Codedge\\Fpdf\\FpdfServiceProvider\" --tag=config`  \nto publish the configuration file to `config/fpdf.php`.\n\n## Usage\n\n```php\n// app/Http/routes.php | app/routes/web.php\n\nRoute::get('/', function (Codedge\\Fpdf\\Fpdf\\Fpdf $fpdf) {\n\n    $fpdf-\u003eAddPage();\n    $fpdf-\u003eSetFont('Courier', 'B', 18);\n    $fpdf-\u003eCell(50, 25, 'Hello World!');\n    $fpdf-\u003eOutput();\n    exit;\n\n});\n```\n\n### Defining fonts\n\nFPDF comes with a set of fonts already defined and stored in the `src/Fpdf/font` directory.\nIf you want to add your own font, please have a look at the [Adding new fonts and encodings](http://www.fpdf.org/en/tutorial/tuto7.htm) tutorial.\n\nYou can change the font path, by using the `FPDF_FONTPATH` environment variable.\n\n## Use in Laravel Vapor\n\nIf you want to use [Laravel Vapor](https://vapor.laravel.com) to host your application,\n[a special header](https://docs.vapor.build/1.0/projects/development.html#binary-responses) needs to be attached to each response that FPDF returns to your browser.\nTo enable the use of this header, add the following environment variable to the Vapor environment file:\n\n```dotenv\nFPDF_VAPOR_HEADERS=true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedge%2Flaravel-fpdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodedge%2Flaravel-fpdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedge%2Flaravel-fpdf/lists"}