zint¸¦ ±âÃÊ·Î 64Á¾·ùÀÇ ¹ÙÄÚµå À̹ÌÁö¸¦ GD ó·³ ¹Ù·Î Ãâ·Â °¡´ÉÇÑ PHP È®ÀåÀÔ´Ï´Ù.
php 5.2.6À¸·Î ÄÄÆÄÀÏ µÇ¾î ÀÖ¾î¼ 5.2.6¿¡¼¸¸ »ç¿ë °¡´ÉÇÕ´Ï´Ù. (´Ù¸¥ php ¹öÁ¯À» ¿øÇÏ½Ã¸é ¾Æ·¡ ÄÄÆÄÀÏ ¹æ¹ý ÂüÁ¶)
aztec code´Â ¹ö±×°¡ ¸¹¾Æ¼ Á¦¿Ü Çß½À´Ï´Ù. console¿ëµµ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.
¾Æ·¡´Â datamatrix¸¸ encode, decode °¡´ÉÇϰí, ÀÌ°Ç ¿©·¯°¡Áö ¹ÙÄڵ带 encode¸¸ °¡´ÉÇÕ´Ï´Ù.
¿ª½Ã À©µµ¿ì ÀÇÁ¸ÀûÀÎ ÇÔ¼ö´Â »ç¿ëÇÏÁö ¾Ê¾Æ¼ phpµ¹¾Æ°¡´Â ¿î¿µÃ¼Á¦¿¡¼ °¡´ÉÇϰÚÁö¸¸, phpize¿ë m4¸¦ ¸¸µéÁÙ ¸ô¶ó¼...
- zint-1.6.2(GPL) http://www.zint.org.uk/
- libqrencode(LGPL) http://megaui.net/fukuchi/works/qrencode/index.en.html
- zlib
- libpng(Open Source)
- º» ¾ÐÃà¿¡ Æ÷ÇԵǾî ÀÖ´Â ¼Ò½º´Â ÀϺκÐÀÌ(zint,qrencode) ¼öÁ¤ µÇ¾î ÀÖ½À´Ï´Ù. zint´Â ¸Þ¸ð¸® ÇÒ´ç ÈÄ ÇØÁ¦ ÀÛ¾÷ÀÌ °ÅÀÇ ¾ø´õ±º¿ä.
Äֿܼë°ú ¿É¼ÇÀÌ °°½À´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº zint/zint/docs/index.htmlÀ» ÂüÁ¶Çϼ¼¿ä.
$params = array(
['outputfile' => string (default NULL, ¼³Á¤µÇÁö ¾ÊÀ¸¸é breturnÀÌ Àû¿ëµÊ)]
['barcode' => int (default 1, Number of barcode type)]
['breturn' => bool (default false, outputfileÀÌ ¼³Á¤µÇ¾î ÀÖÀ¸¸é ¹«½ÃµÊ)]
'data' => string (Barcode content) (require)
['height' => int (default 0(auto), 1~1000 pixels, Height of barcode)]
['Whitespace' => int (default 0, 0~1000 pixels, Width of whitespace)]
['border' => int (default 0, 1~1000 pixels, Width of border)]
['outputoption' => int (ZINT_BARCODE_BIND, ZINT_BARCODE_BOX )
(default NONE, BARCODE_BIND=border ¸¸Å À§¾Æ·¡ ¼±, BARCODE_BOX=border ¸¸ÅÀÇ ¹Ú½º)]
['reverse' => bool (default false, Reverse colours )]
['fg' => string (default 000000, 6 length string, Specify a foreground color)]
['bg' => string (default ffffff, 6 length string, Specify a background color)]
['rotate' => int (default 0, 90 180 270)]
['cols' => int (default 0, 1~30, PDF417 only)]
['vers' => int (default 0, 1~9, QR Code only )]
['secure' => int (default -1, 1~8, PDF417 and QR Code Error correction level)]
['primary' => string (default NULL, Maxicode and Composite Structured primary message)]
['mode' => int (1~6, Maxicode and Composite Set encoding mode)]
);
zint_imagepng( $params );
<?
//ȸéÀ¸·Î QR Code°¡ »Ñ·ÁÁý´Ï´Ù.
$params = array (
'barcode'=>58 //qrcode
,'data'=> "1234"
);
zint_imagepng($params);
?>
<?
//ȸéÀ¸·Î Ãâ·ÂÇÏÁö ¾Ê°í º¯¼ö¿¡ ´ã½À´Ï´Ù.
$params = array (
'barcode'=>57//maxicode
,'data'=> "1234"
,'breturn'=>true
);
$result = zint_imagepng($params);
//echo $result;
?>
<?
//ÆÄÀÏ·Î Ãâ·ÂÇÕ´Ï´Ù.
$params = array (
'outputfile'=>
"test.png"
,'barcode'=>55 //PDF417
,'data'=> "1234"
);
zint_imagepng($params);
?>
1 |
Code 11 |
2 |
Standard Code 2 of 5 |
3 |
Interleaved 2 of 5 |
4 |
Code 2 of 5 IATA |
6 |
Code 2 of 5 Data Logic |
7 |
Code 2 of 5 Industrial |
8 |
Code 3 of 9 (Code 39) |
9 |
Extended Code 3 of 9 (Code 39+) |
13 |
EAN |
16 |
GS1-128 (UCC.EAN-128) |
18 |
Codabar |
20 |
Code 128 (automatic subset switching) |
21 |
Deutshe Post Leitcode |
22 |
Deutshe Post Identcode |
23 |
Code 16K |
25 |
Code 93 |
28 |
Flattermarken |
29 |
GS1 DataBar-14 |
30 |
GS1 DataBar Limited |
31 |
GS1 DataBar Extended |
32 |
Telepen Alpha |
34 |
UPC A |
37 |
UPC E |
40 |
PostNet |
47 |
MSI Code |
49 |
FIM |
50 |
LOGMARS |
51 |
Pharmacode One-Track |
52 |
PZN |
53 |
Pharmacode Two-Track |
55 |
PDF417 |
56 |
PDF417 Truncated |
57 |
Maxicode |
58 |
QR Code |
60 |
Code 128 (Subset B) |
63 |
Australia Post Standard Customer |
66 |
Australia Post Reply Paid |
67 |
Australia Post Routing |
68 |
Australia Post Redirection |
69 |
ISBN (EAN-13 with verification stage) |
70 |
Royal Mail 4 State (RM4SCC) |
71 |
Data Matrix |
72 |
ITF-14 |
75 |
NVE-18 |
79 |
GS1 DataBar-14 Stacked |
80 |
GS1 DataBar-14 Stacked Omnidirectional |
81 |
GS1 DataBar Expanded Stacked |
82 |
PLANET |
84 |
MicroPDF417 |
85 |
USPS OneCode |
86 |
Plessey Code |
100 |
Telepen Numeric |
101 |
MSI Plessey + mod 10 |
102 |
MSI Plessey + mod 10 + mod 10 |
103 |
MSI Plessey + mod 11 |
104 |
MSI Plessey + mod 10 + mod 11 |
105 |
Code 39 + mod 43 |
106 |
Extended Code 39 + mod 43 |
110 |
Composite Symbol with EAN linear component |
111 |
Composite Symbol with GS1-128 linear component |
112 |
Composite Symbol with GS1 DataBar-14 linear component |
113 |
Composite Symbol with GS1 DataBar Limited component |
114 |
Composite Symbol with GS1 DataBar Extended component |
115 |
Composite Symbol with UPC A linear component |
116 |
Composite Symbol with UPC E linear component |
117 |
Composite Symbol with GS1 DataBar-14 Stacked component |
118 |
Composite Symbol with GS1 DataBar-14 Stacked Omnidirectional component |
119 |
Composite Symbol with GS1 DataBar Expanded Stacked component |
120 |
Dutch Post KIX Code |