Download the PHP package dsiddharth2/php-zxing without Composer

On this page you can find all versions of the php package dsiddharth2/php-zxing. 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 php-zxing

PHPZxing - Wrapper for Zxing Java Library

PHPZxing is a small php wrapper that uses the Zxing library to Create and read Barcodes. Under the hood it still uses the Zxing library to encode and decode data.

Install using composer

Note

Changes in version 1.0.3

Changes in version 1.0.2

Changes in version 1.0.1

Basic Usage

The Decoded data is an Array of Objects of PHPZxing\ZxingImage if the bar code is found. If not found then it is an array of Objects PHPZxing\ZxingBarNotFound.

Checking for existence of Barcode

The Existance of bar code can be found using the functoin isFound()

You can also check using the instanceof object,

The Public methods that we can use in PHPZxing\ZxingImage are,

Method Name Function
getImageValue Get the value decoded in the image passed
getFormat Get the format of the image that is encoded, example : CODE_39
getType Get the type of the image decoded, example : URL, TEXT etc
getImagePath Get Path of the image

The Public methods that we can use in PHPZxing\ZxingImage are,

Method Name Function
getImageErrorCode Get the error code for the image not found
getErrorMessage Error Message
getImagePath Get Path of the image

Setting the configurations

You can also use it with configurations. The Decoder has 4 configurations,

Config Name Function
try_harder If the image has bar/Qr code at unknown locations, then use this non mobile mode.
multiple_bar_codes If the image has multiple bar codes you want to read.
crop Crop the image and it will read only the cropped portion
possible_formats List of formats to decode, where format is any value in BarcodeFormat

More Examples

You can pass array of images too,

Reading multiple bar codes,

Set Java Path

If your java PATH is not set properly, the decoder will not work. You need to set path of java variable.

Where is my java located ?

If you do not know the path to java, then you can use the following on *nix enviromnents

On Windows environment,

For more info, on Windows read the follwoing stackoverflow Link

Acknowledgments

Contibution

Please Contribute or suggest changes.


All versions of php-zxing with dependencies

PHP Build Version
Package Version
No informations.
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 dsiddharth2/php-zxing contains the following files

Loading the files please wait ....