Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract class. Add method GetPngData. #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ArturGoldyn
Copy link

Extract class - makes coding easier by encapsulating usable code in public static methods of class.

Add method GetPngData. Allows to obtain PNG data instead of immediately returning image to browser.
You can obtain image using the following instructions:

$pngData = PhpBarcode::GetPngData($image);
header('Content-type: image/png');
echo $pngData;

Add method GetPngData.
@elminson
Copy link

@ArturGoldyn I just follow your code and implement in my version of this code as a composer library
you can found it here
https://github.com/elminson/barcode
https://packagist.org/packages/elminson/barcode

Thanks yourr your code. feel free to comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants