| 1 |
lars |
1 |
= Image_Barcode - a package to render barcodes =
|
|
|
2 |
------------------------------------------------
|
|
|
3 |
|
|
|
4 |
With PEAR::Image_Barcode class you can create a barcode representation of a
|
|
|
5 |
given string.
|
|
|
6 |
|
|
|
7 |
This class uses GD function because this the generated graphic can be any of
|
|
|
8 |
GD supported supported image types.
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
= Installation =
|
|
|
12 |
----------------
|
|
|
13 |
|
|
|
14 |
You can install Image_Barcode issuing the following command (as root):
|
|
|
15 |
|
|
|
16 |
# pear install Image_Barcode
|
|
|
17 |
|
|
|
18 |
If you don't have the 'pear' command, please consult PEAR::The PHP Extension and
|
|
|
19 |
Application Repository homepage at http://pear.php.net
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
= Getting Started =
|
|
|
23 |
-------------------
|
|
|
24 |
|
|
|
25 |
Just load the class in your script:
|
|
|
26 |
|
|
|
27 |
require_once('Image/Barcode.php');
|
|
|
28 |
|
|
|
29 |
Call the Image_Barcode::draw() as the follow:
|
|
|
30 |
|
|
|
31 |
Image_Barcode::draw('1234', 'int25', 'png');
|
|
|
32 |
|
|
|
33 |
Where:
|
|
|
34 |
|
|
|
35 |
= '1234' : string you want to draw as barcode;
|
|
|
36 |
= 'int25': barcode type (check the avaible types at 'Barcode' subdir);
|
|
|
37 |
= 'png' : generated graphic type.
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
= Current State =
|
|
|
41 |
-----------------
|
|
|
42 |
|
|
|
43 |
You can get the latest code at the PEAR site:
|
|
|
44 |
http://pear.php.net/package/Image_Barcode/
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
= Contributing =
|
|
|
48 |
----------------
|
|
|
49 |
|
|
|
50 |
Help from people who want code new barcode module types are very welcome. Just
|
|
|
51 |
send your module directly to msmarcal@php.net
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
= Credits =
|
|
|
55 |
-----------
|
|
|
56 |
|
|
|
57 |
Core class
|
|
|
58 |
written by Marcelo Subtil Marcal <msmarcal@php.net>
|
|
|
59 |
|
|
|
60 |
Interleaved 2 of 5 barcode module type
|
|
|
61 |
written by Marcelo Subtil Marcal <msmarcal@php.net>
|
|
|
62 |
|
|
|
63 |
EAN13 barcode module type
|
|
|
64 |
written by Didier FOURNOUT <didier.fournout@nyc.fr>
|
|
|
65 |
|
|
|
66 |
Code39 barcode module type
|
|
|
67 |
written by Ryan Briones <ryanbriones@webxdesign.org>
|
|
|
68 |
|
|
|
69 |
UPC-A and Code128 barcode modules
|
|
|
70 |
written by Jeffrey K. Brown <jkb@darkfantastic.net>
|
|
|
71 |
|
|
|
72 |
PostNet barcode module type
|
|
|
73 |
written by Josef "Jeff" Sipek <jeffpc@optonline.net>
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
= Thanks to =
|
|
|
77 |
-------------
|
|
|
78 |
|
|
|
79 |
Mark A.R. <mark@mark.org.il>
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
= Author =
|
|
|
83 |
----------
|
|
|
84 |
|
|
|
85 |
Written by Marcelo Subtil Marcal <msmarcal@php.net>
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
= Reporting Bugs =
|
|
|
89 |
------------------
|
|
|
90 |
|
|
|
91 |
Report bugs at: http://pear.php.net/bugs/report.php?package=Image_Barcode
|