PHPackages                             tectiv3/bcbp - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tectiv3/bcbp

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tectiv3/bcbp
============

Barcoded boarding pass encoder/decoder in PHP

v0.1.0(8mo ago)0406MITPHPPHP ^8.1

Since Sep 16Pushed 3mo agoCompare

[ Source](https://github.com/tectiv3/bcbp)[ Packagist](https://packagist.org/packages/tectiv3/bcbp)[ RSS](/packages/tectiv3-bcbp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

BCBP PHP
========

[](#bcbp-php)

BCBP PHP is a PHP 8.1+ library for working with IATA barcoded boarding passes. It can decode boarding passes data into structured arrays and re-encode them back into the compact 2D barcode format. The codebase mirrors the reference TypeScript implementation in `georgesmith46/bcbp`.

Features
--------

[](#features)

- Decode barcoded boarding pass (BCBP) payloads into passenger metadata and leg details.
- Encode structured passenger data back into an IATA-conformant BCBP string.
- Handle conditional sections (A and B), multiple flight legs, and security data blocks.
- Normalize flight dates relative to issuance dates using the IATA day-of-year convention.

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

[](#installation)

Install the library via Composer:

```
composer require tectiv3/bcbp
```

If you are working from a local clone, ensure dependencies are installed before running tests:

```
composer install
```

Quick Start
-----------

[](#quick-start)

### Decoding a boarding pass

[](#decoding-a-boarding-pass)

```
