Skip to content
Browse files

Merge pull request #31 from Gemorroj/master

revert psr-0, add compoer example
  • Loading branch information...
2 parents f9b33d0 + 74c685f commit 4c747a47748740376045f5ceeb99733213a0ef3a @Gemorroj Gemorroj committed Dec 18, 2015
Showing with 13 additions and 2 deletions.
  1. +2 −2 composer.json
  2. +11 −0 docs/examples/barcode_composer.php
View
4 composer.json
@@ -17,8 +17,8 @@
}
],
"autoload": {
- "psr-4": {
- "Image\\": "Image"
+ "psr-0": {
+ "Image": "./"
}
},
"description": "A PHP5 revamp of the Image_Barcode package",
View
11 docs/examples/barcode_composer.php
@@ -0,0 +1,11 @@
+<?php
+require __DIR__ . '/../../vendor/autoload.php';
+
+$img = \Image_Barcode2::draw(
+ '4003994155486',
+ \Image_Barcode2::BARCODE_EAN13,
+ \Image_Barcode2::IMAGE_PNG,
+ false
+);
+
+imagepng($img, '/test.png');

0 comments on commit 4c747a4

Please sign in to comment.
Something went wrong with that request. Please try again.