{"id":25590705,"url":"https://github.com/cable8mm/waybill","last_synced_at":"2026-02-10T09:10:12.421Z","repository":{"id":277111888,"uuid":"929383829","full_name":"cable8mm/waybill","owner":"cable8mm","description":"A lightweight PHP library for generating PDF waybills with ease.","archived":false,"fork":false,"pushed_at":"2025-02-16T05:37:12.000Z","size":2079,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T20:04:48.291Z","etag":null,"topics":["barcode","delivery","factory","faker","invoice","parcel","pdf","waybill"],"latest_commit_sha":null,"homepage":"http://www.palgle.com/waybill/","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/cable8mm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-08T12:26:32.000Z","updated_at":"2025-02-16T05:37:14.000Z","dependencies_parsed_at":"2025-02-12T07:52:31.024Z","dependency_job_id":"b050b765-e75e-4e7c-9291-653c7a71d6e9","html_url":"https://github.com/cable8mm/waybill","commit_stats":null,"previous_names":["cable8mm/waybill"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cable8mm%2Fwaybill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cable8mm%2Fwaybill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cable8mm%2Fwaybill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cable8mm%2Fwaybill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cable8mm","download_url":"https://codeload.github.com/cable8mm/waybill/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643043,"owners_count":21138353,"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":["barcode","delivery","factory","faker","invoice","parcel","pdf","waybill"],"created_at":"2025-02-21T09:30:30.764Z","updated_at":"2026-02-10T09:10:07.369Z","avatar_url":"https://github.com/cable8mm.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDF Waybill Generator\n\n![Coding Style Actions](https://github.com/cable8mm/waybill/actions/workflows/code-style.yml/badge.svg)\n![Run Tests Actions](https://github.com/cable8mm/waybill/actions/workflows/run-tests.yml/badge.svg)\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/cable8mm/waybill.svg)](https://packagist.org/packages/cable8mm/waybill)\n[![Packagist Dependency Version](https://img.shields.io/packagist/dependency-v/cable8mm/waybill/php?logo=PHP\u0026logoColor=white\u0026color=777BB4)](https://packagist.org/packages/cable8mm/waybill)\n[![Total Downloads](https://img.shields.io/packagist/dt/cable8mm/waybill.svg)](https://packagist.org/packages/cable8mm/waybill)\n[![Packagist Stars](https://img.shields.io/packagist/stars/cable8mm/waybill)](https://github.com/cable8mm/waybill/stargazers)\n\nA lightweight PHP library for generating PDF waybills with ease. This package allows developers to create and customize waybills in PDF format for courier and logistics services. It supports barcode generation, sender/receiver details, and customizable layouts. Perfect for automating shipping label creation in your e-commerce or logistics applications.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require cable8mm/waybill\n```\n\n## Usage\n\nSave a waybill for pdf format:\n\n```php\nuse Cable8mm\\Waybill\\Enums\\ParcelService;\nuse Cable8mm\\Waybill\\Waybill;\n\nWaybill::of(ParcelService::Cj)\n    -\u003epath(realpath(__DIR__.'/../dist'))\n    -\u003esave('test.pdf');\n```\n\nGet a waybill array:\n\n```php\n$waybill = Waybill::of(ParcelService::Cj)\n            -\u003etoArray()\n```\n\nSave multiple waybills for pdf format:\n\n```php\n$mpdf = Mpdf::instance();\n\nWaybillCollection::of(mpdf: $mpdf)\n    -\u003eadd(Waybill::of(ParcelService::Cj, mpdf: $mpdf))\n    -\u003eadd(Waybill::of(ParcelService::Cj, mpdf: $mpdf))\n    -\u003epath(realpath(__DIR__.'/../dist'))\n    -\u003esave('collection.pdf');\n\n// or\n\nWaybillCollection::of(mpdf: $mpdf)\n    -\u003eadd([\n      Waybill::of(ParcelService::Cj, mpdf: $mpdf),\n      Waybill::of(ParcelService::Cj, mpdf: $mpdf),      \n      ])\n    -\u003epath(realpath(__DIR__.'/../dist'))\n    -\u003esave('collection.pdf');\n\n```\n\nSlice the page of the waybills:\n\n```php\nSlicer::of(ParcelService::Cj, 1)\n    -\u003esource('source.pdf')\n    -\u003esave('one_page.pdf'); // or `-\u003edownload('one_page.pdf')`\n```\n\n### How to customize\n\nIf you want to add another parcel service like UPS, you would need to make `Enums` and `Factory` class, for example:\n\n1. Make `UpsFactory.php` into `src/Factories' folder.\n2. Make `Enum` element into `src/Enums` folder.\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 \u003ccable8mm@gmail.com\u003e instead of using the issue tracker.\n\n## Credits\n\n- [Samgu Lee](https://github.com/cable8mm)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcable8mm%2Fwaybill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcable8mm%2Fwaybill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcable8mm%2Fwaybill/lists"}