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

How to install in laravel 5.4? #317

Closed
orlandomota opened this issue Mar 10, 2017 · 10 comments
Closed

How to install in laravel 5.4? #317

orlandomota opened this issue Mar 10, 2017 · 10 comments

Comments

@orlandomota
Copy link

I need install this library in laravel 5.4

@Stenerson
Copy link
Collaborator

Did you check this issue out? #300

Could you provide more information?

@mike42
Copy link
Owner

mike42 commented Mar 12, 2017

@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.

@mike42 mike42 closed this as completed Mar 12, 2017
@djdang3r
Copy link

djdang3r commented Mar 22, 2018

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!!...

@Stenerson
Copy link
Collaborator

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.

@djdang3r
Copy link

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.

@Stenerson
Copy link
Collaborator

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! 🖨

@djdang3r
Copy link

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.

@lesmesleiton
Copy link

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.

@Stenerson
Copy link
Collaborator

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 IntlBreakIterator is missing an e in your error message. Perhaps it's mistyped somewhere (or perhaps just mistyped in the comment?)

@marcosrocha85
Copy link

Sorry to join the party so late. But there's a repository which brings escpos-php to Laravel.
https://github.com/charlieuki/receipt-printer

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

No branches or pull requests

6 participants