Create barcode generator for Codeigniter using Zend Library (Support Codeigniter 2 & 3)
Codeigniter-Barcode by Zend Library - Changelog & Documentation
Create barcode generator using Zend Library
It’s so easy to use, you just extract the library into libraries path and then put library in controller, check it out now!
class Main extends CI_Controller {
public function index()
{
// You can put anything here to generate of barcode
$string = 'code39';
$this->set_barcode($string);
}
private function set_barcode($code)
{
// Load library
$this->load->library('zend');
// Load in folder Zend
$this->zend->load('Zend/Barcode');
// Generate barcode
Zend_Barcode::render('code128', 'image', array('text'=>$code), array());
}
}
License : MIT License
Official Authors @desta