{"id":15067107,"url":"https://github.com/wappla/laravel-markdown-to-pdf","last_synced_at":"2025-04-10T13:54:18.710Z","repository":{"id":62546589,"uuid":"116383904","full_name":"wappla/laravel-markdown-to-pdf","owner":"wappla","description":"Create PDF files with markdown in laravel","archived":false,"fork":false,"pushed_at":"2019-04-05T08:25:43.000Z","size":13,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T12:39:29.002Z","etag":null,"topics":["dompdf","laravel","laravel5","markdown","markdown-to-pdf","package","pdf","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/wappla.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":"2018-01-05T12:41:57.000Z","updated_at":"2023-01-02T13:41:29.000Z","dependencies_parsed_at":"2022-11-02T22:15:58.938Z","dependency_job_id":null,"html_url":"https://github.com/wappla/laravel-markdown-to-pdf","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wappla%2Flaravel-markdown-to-pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wappla%2Flaravel-markdown-to-pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wappla%2Flaravel-markdown-to-pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wappla%2Flaravel-markdown-to-pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wappla","download_url":"https://codeload.github.com/wappla/laravel-markdown-to-pdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248229361,"owners_count":21068880,"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":["dompdf","laravel","laravel5","markdown","markdown-to-pdf","package","pdf","php"],"created_at":"2024-09-25T01:16:38.825Z","updated_at":"2025-04-10T13:54:18.691Z","avatar_url":"https://github.com/wappla.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Package still in development..\n\n# Markdown to pdf\n\nSimple package to convert markdown files to PDF in laravel.\n\n## Requirements\n- Laravel \u003e 5.5\n\n## Installation\n\nInstall the package with composer:\n\n```\n composer require 'wappla/laravel-markdown-to-pdf'\n```\n\nThis packages uses the auto discovery feature of laravel. So there is no need to register the service provider or alias.\n\n## Usage\n\nCreate a blade view and add the markdown to pdf component. Between the component element you can start writing markdown.\n\nBelow i created a simple example.blade.php :\n```\n@component('MarkdownToPDF::layout')\n# Hello\n@endcomponent\n```\n\n### To view this as a PDF file in your browser you dan do:\n\n```php\n    return \\MarkdownToPDF::loadView('example')-\u003estream();\n```\n\nThe standard directory for loading views is resources/views. No need to add the blade.php extension. If you would like to specify a custom directory you can use the dot notation.\n\n```php\n    return \\MarkdownToPDF::loadView('custom-directory.example')-\u003estream();\n```\n\n### Store this view in storage\n\nSpecifiy a custom filename or leave blank to save your pdf in storage.\n\n```php\n    return \\MarkdownToPDF::loadView('example')-\u003esave('awesome-file.pdf');\n```\n\nThe pdf will be stored based on your Laravel filesystem configuration. If you would like to specify a custom location you can create your own disk and add a second parameter to the save method.\n\nThe below example stores the pdf file on the public disk:\n\n```php\n    return \\MarkdownToPDF::loadView('example')-\u003esave('awesome-file.pdf', 'public');\n```\n\n\n## Configuration\n\nUse the standard `php artisan vendor:publish` laravel command an select the correct number or be more specific:\n\nTo publish all the configuration and views:\n\n```\nphp artisan vendor:publish --provider=\"Wappla\\LaravelMarkdownToPDF\\MarkdownToPDFServiceProvider\"\n```\n\nOnly publish views:\n\n```\nphp artisan vendor:publish --tag=\"markdown-to-pdf-views\"\n```\n\nOnly publish config:\n\n```\nphp artisan vendor:publish --tag=\"markdown-to-pdf-config\"\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwappla%2Flaravel-markdown-to-pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwappla%2Flaravel-markdown-to-pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwappla%2Flaravel-markdown-to-pdf/lists"}