aspose / barcode
A PHP library that allows developers to quickly and easily add barcode generation and recognition functionality to their PHP applications while using Aspose.Barcode for Java as core library and PHP-Java Bridge for communication.
Installs: 2 123
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 10
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- dev-master
- 24.10.0
- v24.9.0
- 24.8
- 24.7.1
- 24.7
- 24.6
- 24.5
- 24.4
- 24.3
- 24.2.1
- 24.2.0
- 24.1.0
- 23.12.0
- 23.11.0
- 23.10.0
- 23.9.0
- 23.8.0
- 23.7.0
- 23.6.0
- 23.5.0
- 23.4.0
- 23.3.0
- 23.2.0
- 23.1.0
- 22.12.1
- 22.11.0
- 22.10.1
- 22.10.0
- 22.9.0
- 22.8.0
- 22.6.0
- 22.5.1
- 22.4.0
- 22.3.0
- 22.2.0
- 22.1.0
- 21.12.0
- 21.11.0
- 21.10.0
- 21.9.0
- 21.8.0
- 21.7.0
- 21.6.0
- 21.5.1
- 21.5.0
- 21.4.0
- 21.3.0
- 21.2.0
- 21.1.0
- 20.12.0
- 20.11.1
- 20.9.3
- 20.8.0
- 20.7.0
- 20.6.0
This package is auto-updated.
Last update: 2024-10-29 14:29:44 UTC
README
Aspose.BarCode for PHP via Java is a robust and reliable barcode generation and recognition component, written in PHP and Java. It allows developers to quickly and easily add barcode creation and scanning functionality to their PHP applications.
General Barcode Features
- Supports most established barcode standards and barcode specifications.
- Ability to read & export barcodes in multiple image formats including BMP, GIF, JPEG & PNG.
- Provides full control over barcode images including background color, bar color, image quality, rotation angle, x-dimension, resolution and more.
- Complete control over barcode captions including caption font, back color, fore color, alignment, and location.
- Support for checksum.
- Support for X-dimension & Y-dimension for 2D BarCodes.
- Support for Wide to Narrow Ratio for supported symbologies.
- Support for DataMatrix barcode with X12, EDIFACT & Base 256 encoding.
Barcode Recognition Features
- Can read most common 1D, 2D barcodes anywhere at any angle from an image.
- Specify an area in the image to scan the barcode
- Get region information for the barcodes recognized in the image
Barcode Imaging Features
- Manipulate the barcode's image borders, border color, style, margins, width, etc.
- Rotate barcode images to any degree.
- Set anti-aliasing for barcode images.
- Manage barcode image margins.
- Customize image resolution.
- Set size in inches or millimeters.
- Auto size barcode images.
Barcode Symbologies
Numeric Only: EAN13, EAN8, UPCA, UPCE, ISBN, ISMN, ISSN, Interleaved2of5, Standard2of5, MSI, Code11, Codabar, Postnet, Planet, EAN14(SCC14), SSCC18, ITF14, IATA 2 of 5, DatabarOmniDirectional, DatabarStackedOmniDirectional, DatabarExpandedStacked, DatabarStacked, DatabarLimited, DatabarTruncated
Alpha-Numeric: GS1Code128, Code128, Code39 Extended, Code39 Standard, Code93 Extended, Code93 Standard, Australia Post, Italian Post 25, Matrix 2 of 5, DatabarExpanded, PatchCode
2D Symbologies: PDF417, DataMatrix, Aztec, QR, MicroQR, GS1DataMatrix, Code16K, CompactPDF417, Swiss QR (QR Bill)
Read Barcodes From
Images: JPEG, TIFF, PNG, BMP
Save Barcode Labels As
Images: JPEG, TIFF, PNG, BMP
Get Started with Aspose.BarCode for PHP via Java
Install PHP application into J2SE
- Install Java 1.8 or above
- Install PHP 7.0 or above into the operating system PATH.
- Put
aspose-barcode-php-xx.x.jar
to certain location, for example folder 'jar' - Prepare JavaBridge. You need to place JavaBridge.jar to a specific path and add it to the classpath.
Or you can just point the path to JavaBridge.jar via command
-jar path/to/JavaBridge.jar
- Launch the JavaBridge by command
"%JAVA_HOME%\bin\java" -Djava.ext.dirs=../jar -jar JavaBridge.jar SERVLET_LOCAL:8888
where-Djava.ext.dirs=../jar
points to the location ofaspose-barcode-php-xx.x.jar
and-jar JavaBridge.jar
points to the location ofJavaBridge.jar
You can appoint a port by your choice. We use8888
just for example to differ from standard servers port numbers. - Test the connection to JavaBridge
http://localhost:8888/JavaBridge/java/Java.inc
- Deploy php files from folder
lib
to your web application on webserver For example toC:/xampp/htdocs/Barcode
- Add
require
statement to your php coderequire_once("http://localhost:8888/JavaBridge/java/Java.inc");
You can find example inexamples/php_side/test_assist.php
file. - Now you can use the PHP API supplied by Aspose.Barcode PHP classes.
Install PHP application by using Tomcat
- Download and install original Apache Tomcat software and copy JavaBridge.war to its autodeploy folder.
For example you can install Tomcat like
C:/apache-tomcat-9.0.37
and copy JavaBridge.war towebapps
folder of TomcatC:/apache-tomcat-9.0.37/webapps
. - Run
C:/apache-tomcat-9.0.37/bin/startup.bat
, JavaBridge.war will be deployed toC:/apache-tomcat-9.0.37/webapps/JavaBridge
. - Copy aspose-barcode-php-xx.x.jar to
lib
folder, such asC:/apache-tomcat-9.0.37/webapps/JavaBridge/WEB-INF/lib
. Restart Tomcat. - Test
http://localhost:8080/JavaBridge/java/Java.inc
to ensure that PHP works fine. - Deploy php files from the folder 'lib' to your web application on webserver
For example to
C:/xampp/htdocs/Barcode
- Add 'require' statement to your php code
require_once("http://localhost:8080/JavaBridge/java/Java.inc");
You can find example in examples/php_side/test_assist.php file. - Now you can use the PHP API supplied by Aspose.Barcode PHP classes.
You can find the installation instructions for php/Java bridge on http://php-java-bridge.sourceforge.net/pjb/installation.php.
Product | Documentation | Blog | API Reference | Search | Free Support | Temporary License