{"id":14975075,"url":"https://github.com/owen-oj/pdf-password-protect","last_synced_at":"2025-10-27T10:32:13.075Z","repository":{"id":57034386,"uuid":"342330309","full_name":"Owen-oj/pdf-password-protect","owner":"Owen-oj","description":"Laravel package to password-protect all pages in PDFs.","archived":false,"fork":false,"pushed_at":"2024-03-12T18:07:34.000Z","size":273,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T05:25:01.493Z","etag":null,"topics":["laravel","laravel-pdf","laravel-pdf-password","laravel-pdf-password-protect","password-protect-pdf","pdf","pdf-encryption","pdf-password","protect-pdfs"],"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/Owen-oj.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"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}},"created_at":"2021-02-25T17:49:11.000Z","updated_at":"2024-10-01T19:31:34.000Z","dependencies_parsed_at":"2024-09-18T16:35:37.511Z","dependency_job_id":"e840f8ce-4e03-4b6e-ae2c-98deecc54d85","html_url":"https://github.com/Owen-oj/pdf-password-protect","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":"0.18181818181818177","last_synced_commit":"9d4684bbf390929e2420a6ac27d64256714c1ff1"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Owen-oj%2Fpdf-password-protect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Owen-oj%2Fpdf-password-protect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Owen-oj%2Fpdf-password-protect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Owen-oj%2Fpdf-password-protect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Owen-oj","download_url":"https://codeload.github.com/Owen-oj/pdf-password-protect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238480925,"owners_count":19479583,"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-pdf","laravel-pdf-password","laravel-pdf-password-protect","password-protect-pdf","pdf","pdf-encryption","pdf-password","protect-pdfs"],"created_at":"2024-09-24T13:51:28.804Z","updated_at":"2025-10-27T10:32:07.722Z","avatar_url":"https://github.com/Owen-oj.png","language":"PHP","funding_links":["https://www.buymeacoffee.com/kkoj"],"categories":[],"sub_categories":[],"readme":"# Laravel PDF Password Protect\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/owenoj/pdf-password-protect.svg?style=flat-square)](https://packagist.org/packages/owenoj/pdf-password-protect)\n[![Total Downloads](https://img.shields.io/packagist/dt/owenoj/pdf-password-protect.svg?style=flat-square)](https://packagist.org/packages/owenoj/pdf-password-protect)\n\nSimple wrapper package around MPDF's `setProtection` method that allows you to set password on PDF files.\n\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/kkoj)\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require owenoj/pdf-password-protect\n```\n\n## Usage\n\nYou can use via Facade like so:\n\n```php\nPDFPasswordProtect::encrypt(storage_path('pdf/document.pdf'),storage_path('pdf/'.'encrypted-documented.pdf'),'janedoe');\n```\nEncrypt method in detail\n* $inputFile and $outputFile has to be a path like `storage_path(\"pdf/document.pdf\")`\n```\nPDFPasswordProtect::encrypt($inputFile,outputFile,$password)\n```\n\nThe final file will be located in `storage/pdf` as `encrypted-document.pdf`\n\n### Testing\n\n```bash\ncomposer test\n```\n\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n### Security\n\nIf you discover any security related issues, please email owen.j@terktrendz.com instead of using the issue tracker.\n\n## Credits\n\n- [Owen Jubilant](https://github.com/owen-oj)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n## Laravel Package Boilerplate\n\nThis package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowen-oj%2Fpdf-password-protect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowen-oj%2Fpdf-password-protect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowen-oj%2Fpdf-password-protect/lists"}