-
Notifications
You must be signed in to change notification settings - Fork 861
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
How to install in laravel 5.4? #317
Comments
Did you check this issue out? #300 Could you provide more information? |
@orlandomota - There was previously a bug #300 where this package had conflicting dependencies with Laravel. I'll close this issue off, as that bug has been fixed, and there's no information here to suggest that this issue is with this package and needs to be tracked separately. |
I want to install this library in laravel 5.3. What instructions should I follow for the correct installation? Is there a step-by-step guide for the installation in laravel 5.3? Tnks!!... |
Hi @djdang3r, There are no step by step instructions for this that I know of, especially since this library has many different options available to connect to your printer. The first step for using with Laravel is to install this package with composer. If you're unfamiliar with that process there are many good tutorials out there. After that, it's really up to you, your needs how you're going to use this library. You can instantiate a new escpo-php connection (see examples) from one of your controller methods and pass commands from there, or you could create a purpose built class to do setup/teardown/etc. |
Hello Matt Stenerson, I was able to install the library with Composer, everything perfect so far. but I want to know what to do in the controller, as the library should call it and execute the instructions to print from the controller. I am a novice in this and I hope you know how to excuse my ignorance. |
The most simple solution would be to put the code from the Hello World example directly in the controller. That's probably not what experienced Laravel developers would recommend but you can always refactor after you get it working! Unfortunately I'm not going to be able to provide much support in actually getting your printer connected if you're having issues with that. I'd suggest reading through the README, FAQ and searching open and closed issues here though as nearly every connection problem has been answered at least once. Happy printing! 🖨 |
Perfect, very kind for your collaboration. I will do the tests and I will comment the results. If everything goes well I will try to make a mini step-by-step guide to replicate the experience. Thank you so much. |
hi Mr. Stenerson i am using laravel 5.8 but i have a problem with "mike42/escpos-php" always shows the error "class IntlBrakIterator not found" i have already enabled the intl extension and i am using php 7.3.8 do you now if library has conflicts with laravel 5.8? Thanks. |
Hi @lesmesleiton, sorry but I'm not using this library actively in Laravel (nor am I using Laravel itself actively enough to know about any changes). It'd think that it would be compatible though. I'm not using the intl extension but did notice that |
Sorry to join the party so late. But there's a repository which brings escpos-php to Laravel. |
I need install this library in laravel 5.4
The text was updated successfully, but these errors were encountered: