PHPackages                             radoid/pdf417 - 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. radoid/pdf417

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

radoid/pdf417
=============

A library for generating PDF417 barcodes in PHP

v1.0.1(2mo ago)0839↓40%MITPHPPHP &gt;=5.5

Since Jul 11Pushed 2mo agoCompare

[ Source](https://github.com/radoid/pdf417-php)[ Packagist](https://packagist.org/packages/radoid/pdf417)[ RSS](/packages/radoid-pdf417/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

PDF 417 barcode generator
=========================

[](#pdf-417-barcode-generator)

This is a fork of the [ihabunek/pdf417-php](https://github.com/ihabunek/pdf417-php/) library, having the Intervention Image library removed for simplicity. It now relies on the PHP native GD extension only. Unneeded configuration options are also removed: bitmap image types (other than PNG) and colors (other than black on white).

Requirements
------------

[](#requirements)

Requires the following components:

- PHP &gt;= 5.5
- PHP extensions: bcmath, gd

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

[](#installation)

Add it to your `composer.json` file:

```
composer require radoid/pdf417

```

Usage overview
--------------

[](#usage-overview)

```
require 'vendor/autoload.php';

use Radoid\PDF417\PDF417;
use Radoid\PDF417\Renderers\ImageRenderer;
use Radoid\PDF417\Renderers\SvgRenderer;

// Text to be encoded into the barcode
$text = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur
imperdiet sit amet magna faucibus aliquet. Aenean in velit in mauris imperdiet
scelerisque. Maecenas a auctor erat.';

// Encode the data, returns a BarcodeData object
$pdf417 = new PDF417();
$data = $pdf417->encode($text);

// Create a PNG image
$renderer = new ImageRenderer();
$image = $renderer->render($data);

// Create an SVG image
$renderer = new SvgRenderer();
$svg = $renderer->render($data);

// Create a data URL
$dataURL = $renderer->renderDataUrl($data);

// Use custom options
$options = [
	'scale' => 3,
	'ratio' => 2,
	'padding' => 0,
]
$renderer = new ImageRenderer($options);
```

### Options available

[](#options-available)

OptionDefaultDescription`scale`3Scale of barcode elements (1-20)`ratio`3Height to width ration of barcode elements (1-10)`padding`20Padding in pixels (0-50)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance85

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 94.7% 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 ~598 days

Total

2

Last Release

78d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1729867?v=4)[Radoid Mobile and Web Development](/maintainers/radoid)[@radoid](https://github.com/radoid)

---

Top Contributors

[![ihabunek](https://avatars.githubusercontent.com/u/482138?v=4)](https://github.com/ihabunek "ihabunek (89 commits)")[![ruudk](https://avatars.githubusercontent.com/u/104180?v=4)](https://github.com/ruudk "ruudk (2 commits)")[![gjuric](https://avatars.githubusercontent.com/u/223015?v=4)](https://github.com/gjuric "gjuric (1 commits)")[![wotan192](https://avatars.githubusercontent.com/u/8224076?v=4)](https://github.com/wotan192 "wotan192 (1 commits)")[![Woutwo](https://avatars.githubusercontent.com/u/1227599?v=4)](https://github.com/Woutwo "Woutwo (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/radoid-pdf417/health.svg)

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

###  Alternatives

[chalcedonyt/laravel-specification

Implementation of the specification pattern

128.6k](/packages/chalcedonyt-laravel-specification)

PHPackages © 2026

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