{"id":22576608,"url":"https://github.com/ndolestudio/dompdf-api","last_synced_at":"2025-04-10T17:12:49.016Z","repository":{"id":110602314,"uuid":"578247510","full_name":"NdoleStudio/dompdf-api","owner":"NdoleStudio","description":"Laravel API  micro-service which to converts HTML to PDF.","archived":false,"fork":false,"pushed_at":"2025-04-01T08:58:30.000Z","size":1036,"stargazers_count":26,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-01T09:34:42.842Z","etag":null,"topics":["html-to-pdf","html-to-pdf-api","html2pdf-api","microservice","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/NdoleStudio.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-14T15:50:39.000Z","updated_at":"2025-04-01T08:58:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"399b80db-3bbd-423e-8fce-70cda5a3e008","html_url":"https://github.com/NdoleStudio/dompdf-api","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/NdoleStudio%2Fdompdf-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fdompdf-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fdompdf-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fdompdf-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NdoleStudio","download_url":"https://codeload.github.com/NdoleStudio/dompdf-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248261907,"owners_count":21074225,"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":["html-to-pdf","html-to-pdf-api","html2pdf-api","microservice","pdf-generation"],"created_at":"2024-12-08T04:07:21.213Z","updated_at":"2025-04-10T17:12:49.007Z","avatar_url":"https://github.com/NdoleStudio.png","language":"PHP","readme":"dompdf API\n==========\n\n[![Build](https://github.com/NdoleStudio/dompdf-api/actions/workflows/ci.yml/badge.svg)](https://github.com/NdoleStudio/dompdf-api/actions/workflows/ci.yml)\n[![GitHub contributors](https://img.shields.io/github/contributors/NdoleStudio/dompdf-api)](https://github.com/NdoleStudio/dompdf-api/graphs/contributors)\n[![GitHub license](https://img.shields.io/github/license/NdoleStudio/dompdf-api?color=brightgreen)](https://github.com/NdoleStudio/dompdf-api/blob/master/LICENSE)\n[![Docker Pulls](https://img.shields.io/docker/pulls/ndolestudio/dompdf-api)](https://hub.docker.com/r/ndolestudio/dompdf-api)\n\nThis project provides an HTTP API wrapper around the [dompdf](https://github.com/dompdf/dompdf) library which converts HTML to PDF. The API is created\nusing the Laravel framework, and you can protect the API using the [basic HTTP authentication scheme](https://datatracker.ietf.org/doc/html/rfc7617).\n\n## Docker Setup\n\nRun the docker container using the command below \n\n```bash\ndocker run -p 8000:80 ndolestudio/dompdf-api\n```\n\nMake an HTTP request to convert an HTML string into a PDF file called `document.pdf`\n\n```bash\ncurl -X POST -d '\u003ch1\u003eHello World\u003c/h1\u003e' http://localhost:8000 --output document.pdf\n```\n\n## Authentication\n\nIf you want to protect the API with basic auth, you can set the `AUTH_USERNAME` and `AUTH_PASSWORD` environment variables when running the docker container\n\n```bash\ndocker run -p 8000:80 \\\n      --env AUTH_USERNAME=\"username\" \\\n      --env AUTH_PASSWORD=\"password\" \\\n      ndolestudio/dompdf-api\n```\n\n**NOTE:** You must now set the username and password when making requests to the API\n\n```bash\n## username:password in base64 is dXNlcm5hbWU6cGFzc3dvcmQ=\ncurl  -X POST -d '\u003ch1\u003eHello World\u003c/h1\u003e' \\\n      -H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\n      http://localhost:8000 --output document.pdf\n```\n\n## Security Vulnerabilities\n\nIf you discover a security vulnerability within the dompdf-api service, please send an e-mail to Acho Arnold via [arnold@ndolestudio.com](mailto:arnold@ndolestudio.com). All security vulnerabilities will be promptly addressed.\n\n## License\n\ndompdf-api is an open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndolestudio%2Fdompdf-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndolestudio%2Fdompdf-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndolestudio%2Fdompdf-api/lists"}