Download the PHP package mopa-liip/barcode-bundle without Composer

On this page you can find all versions of the php package mopa-liip/barcode-bundle. 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 barcode-bundle

README

Introduction

MopaBarcodeBundle integrates Zend_Barcode and PHP QR Lib to be easily used in symfony2 via twig. I did include phpqrcode form http://sourceforge.net/projects/phpqrcode/ due to changes in its config. Is just a shot and shouldnt be considered to be perfect. Feel free to fork and PR.

Prerequisites

Installation

  1. Add this bundle to your composer.json:

  2. Add this bundle to your app/AppKernel.php:

Demo

Include MopaBoostrapBundle in your app: https://github.com/phiamo/MopaBootstrapBundle

Include this snipplet in your routing.yml

Add this to your config.yml:

And try http://{yoursymfonyapp}/mopa/barcode/playground

Usage

Have a look into the https://github.com/phiamo/MopaBarcodeBundle/blob/master/Controller/BarcodeController.php to see it in action

Supported Barcode Types depend on your Zend2 installation

If you installed it have a look into https://github.com/phiamo/MopaBarcodeBundle/blob/master/Model/BarcodeTypes.php The Type given to the service is either the int or the string defined in the types arrays keys and values

To get the service in your controllers etc you can use

$bmanager = $this->container->get('mopa_barcode.barcode_service');

$bmanager->saveAs($type, $text, $file); to save a Barcode of $type with $text as $file or

$bmanager->get($type, $enctext, $absolute = false); to get the url to the file where $enctext is urlencoded and $absolute is an boolean to get either the absolute or the relative path (default)

Twig Helper

There is also a twig helper registered:

Of course the dict (3rd parameter is optional) have a look into http://framework.zend.com/manual/2.1/en/modules/zend.barcode.creation.html to see what options can be set.

the dict also takes a noCache boolean, i wont explain it further

Using the bundle directly

To Make usage e.g. of the Playground in your app, just copy the playground.html.twig to app/Resources/MopaBootstrapBundle/views/Barcode/playground.html.twig and modify as you like

Using the Bundle as a urlservice

If you would like to generate the barcodes on the fly include in your routing.yml

And just use Urls to generate your barcodes:

http://{yoursymfonyapp}/mopa/barcode/send/{type}/{enctext}

Using QR code overlays

Add this to twig template.

Changing overlay images

Add and edit this to your parameters.yml file.

mopa_barcode.overlay_images_path: Resources/qr_overlays

For each QR code level (size) you have to generate overlay image. Look in `Resources/qr_overlays' path of bundle for example overlay images.

TODO

- Load the different Barcode Libs in a different way. should't be done by ints :(

Known Issues

- Nothing what could not be done in another way, probably some will arise as soon as its published
  So make issues!
- There are probably things missing, so make PR's

All versions of barcode-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
liip/imagine-bundle Version ^1.2.6
symfony/framework-bundle Version ~2.3
symfony/twig-bundle Version ~2.3|~3.0
zendframework/zend-barcode Version ~2.3.7
zendframework/zend-validator Version ~2.3.7
zendframework/zend-servicemanager Version ~2.3.7
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 mopa-liip/barcode-bundle contains the following files

Loading the files please wait ....