rawilk / laravel-printing

Direct printing for Laravel apps.
https://randallwilk.dev/docs/laravel-printing
MIT License
447 stars 71 forks source link

installation issue #19

Closed omaisali closed 2 years ago

omaisali commented 3 years ago

I am not able to install this package.

Problem 1

MuhammadAbbasAkhtar commented 3 years ago

I am not able to install this package.

Problem 1

  • Root composer.json requires rawilk/laravel-printing ^2.0 -> satisfiable by rawilk/laravel-printing[2.0.0].
  • rawilk/laravel-printing 2.0.0 requires mike42/escpos-php ^3.0 -> found mike42/escpos-php[v3.0] but the package is fixed to v2.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

I was having some problems during installation too but quickly found a workaround:

  1. Made a folder called Printing inside project_name/app
  2. Inside this paste the files from laravel-printing/src/
  3. and the config folder laravel-printing/config/

image

Then in composer.json: "autoload":{ "classmap":[ "app/Printing" ] }

omaisali commented 3 years ago

I am not able to install this package. Problem 1

  • Root composer.json requires rawilk/laravel-printing ^2.0 -> satisfiable by rawilk/laravel-printing[2.0.0].
  • rawilk/laravel-printing 2.0.0 requires mike42/escpos-php ^3.0 -> found mike42/escpos-php[v3.0] but the package is fixed to v2.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

I was having some problems during installation too but quickly found a workaround:

  1. Made a folder called Printing inside project_name/app
  2. Inside this paste the files from laravel-printing/src/
  3. and the config folder laravel-printing/config/

image

Then in composer.json: "autoload":{ "classmap":[ "app/Printing" ] }

i tried and updated composer, but its same issue i have.

MuhammadAbbasAkhtar commented 3 years ago

I am not able to install this package. Problem 1

  • Root composer.json requires rawilk/laravel-printing ^2.0 -> satisfiable by rawilk/laravel-printing[2.0.0].
  • rawilk/laravel-printing 2.0.0 requires mike42/escpos-php ^3.0 -> found mike42/escpos-php[v3.0] but the package is fixed to v2.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

I was having some problems during installation too but quickly found a workaround:

  1. Made a folder called Printing inside project_name/app
  2. Inside this paste the files from laravel-printing/src/
  3. and the config folder laravel-printing/config/

image Then in composer.json: "autoload":{ "classmap":[ "app/Printing" ] }

i tried and updated composer, but its same issue i have.

Run the composer dump-autoload

the solution refs to this question referance answer https://stackoverflow.com/a/59489333/3397143

rawilk commented 2 years ago

Not sure about your configuration, but I've never had that issue installing this package on my own projects.