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

Call to undefined function Milon\\Barcode\\app() #183

Open
nightwalkeryao opened this issue Sep 25, 2023 · 0 comments
Open

Call to undefined function Milon\\Barcode\\app() #183

nightwalkeryao opened this issue Sep 25, 2023 · 0 comments

Comments

@nightwalkeryao
Copy link

Hello,
I am using this package outside of a Laravel project to generate an image for a PDF417 code but it fails with error Call to undefined function Milon\\Barcode\\app(),
file: [...]\\vendor\\milon\\barcode\\src\\Milon\\Barcode\\DNS2D.php, line: 183

My code looks like

use Milon\Barcode\DNS2D;

// ...
$code = "My text goes here";
$pdf417 = new DNS2D();
$raw_image = base64_decode($pdf417->getBarcodePNG($code, "PDF417,8", 3, 3));
// ...

I do not have any app function in my codebase.

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

No branches or pull requests

1 participant