{"id":37264957,"url":"https://github.com/loskoderos/faktura-php","last_synced_at":"2026-01-16T00:02:42.475Z","repository":{"id":62519146,"uuid":"119087928","full_name":"loskoderos/faktura-php","owner":"loskoderos","description":"Generate pretty PDF invoices in PHP","archived":false,"fork":false,"pushed_at":"2022-12-21T08:08:14.000Z","size":722,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-14T14:41:33.953Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://koderos.com/blog/2018/10/05/faktura-php-generate-pdf-invoices-in-php/","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/loskoderos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-26T18:27:07.000Z","updated_at":"2025-07-12T15:53:57.000Z","dependencies_parsed_at":"2022-11-02T14:00:22.999Z","dependency_job_id":null,"html_url":"https://github.com/loskoderos/faktura-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/loskoderos/faktura-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loskoderos%2Ffaktura-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loskoderos%2Ffaktura-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loskoderos%2Ffaktura-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loskoderos%2Ffaktura-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loskoderos","download_url":"https://codeload.github.com/loskoderos/faktura-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loskoderos%2Ffaktura-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28474209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T22:27:41.514Z","status":"ssl_error","status_checked_at":"2026-01-15T21:54:47.910Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-01-16T00:02:41.747Z","updated_at":"2026-01-16T00:02:42.462Z","avatar_url":"https://github.com/loskoderos.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Faktura PHP\n\nGenerate pretty PDF invoices in PHP\n\n## What is this?\n\nFaktura in polish means invoice and this library is created to render pretty invoices in PHP.\n\nFaktura is a simple standalone PHP library for rendering PDF invoices in PHP.\nYou can easily integrate it into your own project using standard tools like\ncomposer. Currently, Faktura depends on _xvfb_ and _wkhtmltopdf_ to create PDF\nfiles. Faktura has builtin rendering based on native PHP templates that can be\ncustomized with plugin functions.\n\nSample PDF invoice: https://github.com/loskoderos/faktura-php/blob/master/examples/simple_invoice_pl.pdf\n![sample](https://raw.githubusercontent.com/loskoderos/faktura-php/master/examples/screenshot1.png)\n\n\n## Basic usage\nFaktura is simple to use and it lets you to map an invoice structure and customize it to your needs.\n~~~php\nuse LosKoderos\\Faktura\\Faktura;\n\n$faktura = new Faktura();\n\n$invoice = $faktura-\u003enewInvoice();\n$invoice-\u003esetInvoiceReference('INV/123/2018');\n\n//...\n\n$invoice-\u003enewItem()\n    -\u003esetDescription('Some item on the invoice')\n    -\u003esetUnitNetPrice(123)\n    ;\n\n//...\n\n$faktura-\u003esetTemplate('path_to_your_invoice_template.phtml');\n$faktura-\u003eexport($invoice, 'invoice.pdf');\n~~~\nHave a look into _examples_ folder to see the full example:\nhttps://github.com/loskoderos/faktura-php/blob/master/examples/simple_invoice_pl.php\n\n## Features\n* Standalone library, no external PHP frameworks needed.\n* Easily integrates with others.\n* Builtin templating using native PHP templates.\n* Builtin support for UTF-8 and images.\n* Extend template rendering with custom plugin functions.\n* Invoice structure can be customized, you can add custom fields to fit your needs.\n* Invoice can be serialized to save it in database for accounting purposes.\n* You can easily customize the library with overrides.\n\n## Installation\nFaktura is still under development, however if you want to try it out you can \neasily install it with Composer:\n~~~\ncomposer config minimum-stability dev\ncomposer require loskoderos/faktura-php:dev-master\n~~~\n\nBefore you use it, you need to take care of a couple od system dependencies.\nYou'll need to install Xvfb and Wkhtmltopdf, on Ubuntu run:\n~~~\nsudo apt-get install xvfb wkhtmltopdf\n~~~\n\nTo confirm, all is good, run the example:\n~~~\nphp examples/simple_invoice_pl.php\n~~~\nIt should finish without any error and generate _examples/simple_invoice_pl.pdf_.\n\n## Contributing\nContributions are welcome, please submit a pull request.\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floskoderos%2Ffaktura-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floskoderos%2Ffaktura-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floskoderos%2Ffaktura-php/lists"}