PHPackages                             cable8mm/waybill - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. cable8mm/waybill

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

cable8mm/waybill
================

A lightweight PHP library for generating PDF waybills with ease.

v1.3.2(1y ago)1329MITPHPPHP ^8.2CI failing

Since Feb 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/cable8mm/waybill)[ Packagist](https://packagist.org/packages/cable8mm/waybill)[ Docs](https://github.com/cable8mm/waybill)[ RSS](/packages/cable8mm-waybill/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (7)Versions (7)Used By (0)

PDF Waybill Generator
=====================

[](#pdf-waybill-generator)

[![Coding Style Actions](https://github.com/cable8mm/waybill/actions/workflows/code-style.yml/badge.svg)](https://github.com/cable8mm/waybill/actions/workflows/code-style.yml/badge.svg)[![Run Tests Actions](https://github.com/cable8mm/waybill/actions/workflows/run-tests.yml/badge.svg)](https://github.com/cable8mm/waybill/actions/workflows/run-tests.yml/badge.svg)[![Latest Version on Packagist](https://camo.githubusercontent.com/23b08250f293e46fd390c6f5ef821abfdf7470758677ce5626b84fa5f57f04c8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361626c65386d6d2f77617962696c6c2e737667)](https://packagist.org/packages/cable8mm/waybill)[![Packagist Dependency Version](https://camo.githubusercontent.com/71c75a3e71d13735f9294da50d0de4ecc3d07aebc5e2fd78d183288cbffd2bd2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6361626c65386d6d2f77617962696c6c2f7068703f6c6f676f3d504850266c6f676f436f6c6f723d776869746526636f6c6f723d373737424234)](https://packagist.org/packages/cable8mm/waybill)[![Total Downloads](https://camo.githubusercontent.com/895a850b7e4ab1d34449ffd13e10cb89fc84d607bf6d1404d4428615190fb141/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6361626c65386d6d2f77617962696c6c2e737667)](https://packagist.org/packages/cable8mm/waybill)[![Packagist Stars](https://camo.githubusercontent.com/b924c2cbd6ab59c1fcd4b707bd68e37400dc1e2296c9a3efbf01cbefe1d67d74/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6361626c65386d6d2f77617962696c6c)](https://github.com/cable8mm/waybill/stargazers)

A 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.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require cable8mm/waybill
```

Usage
-----

[](#usage)

Save a waybill for pdf format:

```
use Cable8mm\Waybill\Enums\ParcelService;
use Cable8mm\Waybill\Waybill;

Waybill::of(ParcelService::Cj)
    ->path(realpath(__DIR__.'/../dist'))
    ->save('test.pdf');
```

Get a waybill array:

```
$waybill = Waybill::of(ParcelService::Cj)
            ->toArray()
```

Save multiple waybills for pdf format:

```
$mpdf = Mpdf::instance();

WaybillCollection::of(mpdf: $mpdf)
    ->add(Waybill::of(ParcelService::Cj, mpdf: $mpdf))
    ->add(Waybill::of(ParcelService::Cj, mpdf: $mpdf))
    ->path(realpath(__DIR__.'/../dist'))
    ->save('collection.pdf');

// or

WaybillCollection::of(mpdf: $mpdf)
    ->add([
      Waybill::of(ParcelService::Cj, mpdf: $mpdf),
      Waybill::of(ParcelService::Cj, mpdf: $mpdf),
      ])
    ->path(realpath(__DIR__.'/../dist'))
    ->save('collection.pdf');
```

Slice the page of the waybills:

```
Slicer::of(ParcelService::Cj, 1)
    ->source('source.pdf')
    ->save('one_page.pdf'); // or `->download('one_page.pdf')`
```

### How to customize

[](#how-to-customize)

If you want to add another parcel service like UPS, you would need to make `Enums` and `Factory` class, for example:

1. Make `UpsFactory.php` into `src/Factories' folder.
2. Make `Enum` element into `src/Enums` folder.

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Samgu Lee](https://github.com/cable8mm)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance40

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

6

Last Release

503d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c910c874a0263a18f9f976273054cd45faa3ffbcba7891992f4ab52d0656dd93?d=identicon)[Sam Lee](/maintainers/Sam%20Lee)

---

Top Contributors

[![cable8mm](https://avatars.githubusercontent.com/u/2672043?v=4)](https://github.com/cable8mm "cable8mm (19 commits)")

---

Tags

barcodedeliveryfactoryfakerinvoiceparcelpdfwaybillpdfcable8mmwaybill

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/cable8mm-waybill/health.svg)

```
[![Health](https://phpackages.com/badges/cable8mm-waybill/health.svg)](https://phpackages.com/packages/cable8mm-waybill)
```

###  Alternatives

[carlos-meneses/laravel-mpdf

Laravel Mpdf: Using Mpdf in Laravel to generate Pdfs.

4433.4M13](/packages/carlos-meneses-laravel-mpdf)[kartik-v/yii2-mpdf

A Yii2 wrapper component for the mPDF library which generates PDF files from UTF-8 encoded HTML.

1745.7M89](/packages/kartik-v-yii2-mpdf)[contributte/pdf

Pdf response extension for Nette Framework

43998.4k4](/packages/contributte-pdf)[abydahana/aksara

Aksara is a CodeIgniter based CRUD Toolkit you can use to build complex applications become shorter, secure and more reliable just in a few lines of code. Serving both CMS or Framework, produce both HEADLESS (RESTful API) or TRADITIONAL (Browser Based), just by writing single controller. Yet it's reusable, scalable and ready to use!

1111.2k](/packages/abydahana-aksara)[robregonm/yii2-pdf

Yii 2 PDF Response Formatter

4647.8k1](/packages/robregonm-yii2-pdf)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
