PHPackages                             barcode-bakery/barcode-1d - 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. barcode-bakery/barcode-1d

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

barcode-bakery/barcode-1d
=========================

Generates 1D barcodes from a PHP server to a file or HTML document.

8.0.0(3mo ago)10146.1k↓18.8%31proprietaryPHPPHP &gt;=8.4

Since May 8Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/barcode-bakery/barcode-php-1d)[ Packagist](https://packagist.org/packages/barcode-bakery/barcode-1d)[ Docs](https://www.barcodebakery.com)[ RSS](/packages/barcode-bakery-barcode-1d/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (1)

[ ![](https://camo.githubusercontent.com/0afe391b6e67518f3552cf94e6a253aa2397a4044903d59483dc00bbc1750619/68747470733a2f2f7777772e626172636f646562616b6572792e636f6d2f696d616765732f4243472d4c6f676f2d53512d4769744875622e737667)](https://www.barcodebakery.com)

[Barcode Bakery](https://www.barcodebakery.com) is library written in PHP, [.NET Standard](https://github.com/barcode-bakery/barcode-dotnet-1d/) and Node.JS which allows you to generate barcodes on the fly on your server for displaying or saving.

The library has minimal dependencies in each language in order to be supported on a wide variety of web servers.

The library is available for free for non-commercial use; however you must [purchase a license](https://www.barcodebakery.com/en/purchase) if you plan to use it in a commercial environment.

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

[](#installation)

There are two ways to install our library:

- With composer, run the following command:

```
composer require barcode-bakery/barcode-1d
```

- Or, download the library on our [website](https://www.barcodebakery.com/en/download), and follow our [developer's guide](https://www.barcodebakery.com/en/docs/php/guide).

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

[](#requirements)

- PHP 7.4+ or PHP8
- GD2

Example usages
--------------

[](#example-usages)

For a full example of how to use each symbology type, visit our [API page](https://www.barcodebakery.com/en/docs/php/barcode/1d).

### Displaying a Code 128 on the screen

[](#displaying-a-code-128-on-the-screen)

```
