Download the PHP package antwerpes/barcodes-1d without Composer

On this page you can find all versions of the php package antwerpes/barcodes-1d. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package barcodes-1d



Packagist Code Style Downloads License

Barcodes 1D

Barcode generator written in PHP for encoding and rendering most common barcode formats to multiple image output formats.

Features

Supported barcodes

Format Variations
Code 128 Auto-Mode and forced A/B/C
EAN EAN-2 / EAN-5 / EAN-8 / EAN-13
UPC UPC-A / UPC-E
MSI Mod10, Mod11, Mod1010, Mod1110
Codabar
Code 11
Code 2 of 5
Code 2 of 5 Interleaved
Code 39
Code 93
ITF-14
Pharmacode

Installation

Install the package via composer:

Usage

Use the Barcodes factory class to create an encoder and render its output to SVG or a base64-encoded image:

Customization

Check out the options for an overview of all customization options.

Examples

Code 128

EAN-13

EAN-2 / EAN-5 / EAN-8

UPC-A / UPC-E

Codabar

Code 11

Code 2 of 5 / Code 2 of 5 Interleaved / ITF-14

Code 39 / Code 93

MSI

Pharmacode

Options

Generic options for all barcode formats:

Option Default Type Comment
width 2 int Width of a single bar
height 100 int Height of a regular bar
text_margin 2 int Distance between barcode and text
text_align center string left / center / right
background #ffffff string\|null Background color. Use null for transparent background
color #000000 string Color of the barcode and text
text_color string Text color. Falls back to color if not set
margin 10 int Margin on all sides of the barcode
margin_top int Falls back to margin if not set
margin_right int Falls back to margin if not set
margin_bottom int Falls back to margin if not set
margin_left int Falls back to margin if not set
display_value true bool Should the code text be displayed below the barcode?
font_size 20 int Large font sizes may break the layout
image_font JetBrains Mono string Path to custom font TTF for image rendering (not used for SVG).
image_scale 1 int Sets the final image scale, e.g. 2x or 4x (not used for SVG).

There are additional options for some barcode formats:

Code128

Option Default Type Comment
mode AUTO string Encoding mode (AUTO / A/ B/ C). Use AUTO for most efficient encoding.

EAN-8 / EAN-13 / UPC-A / UPC-E

Option Default Type Comment
flat false bool Flat encoding (without the guard bars)
with_quiet_zone false bool Enables quiet zones with (< and/or > symbols). Only relevant for EAN-8 / EAN-13

Code39

Option Default Type Comment
enable_checksum false bool Calculate and append mod43 checksum
full_ascii false bool Enable full ASCII mode

Code39

Option Default Type Comment
full_ascii false bool Enable full ASCII mode

MSI

Option Default Type Comment
check_digit null string\|null MOD_10 / MOD_11 / MOD_1010 / MOD_1110

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

License

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

Acknowledgements


All versions of barcodes-1d with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-gd Version *
illuminate/collections Version ^9.13|^10.0|^11.0
intervention/image Version ^3.6
meyfa/php-svg Version ^0.15.0
symfony/options-resolver Version ^7.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package antwerpes/barcodes-1d contains the following files

Loading the files please wait ....