Friday, December 31, 2021

[FIXED] Composer [InvalidArgumentException] Could not find package mtibben/html2text

Issue

I have tried to install html2text via composer to my laravel application. Here is a link to the html2text repository. https://github.com/mtibben/html2text

I have tried composer require mtibben/html2text giving this error:

[InvalidArgumentException]
Could not find package mtibben/html2text at any version for your minimum-stability (stable). Check the package spel ling or your minimum-stability

Also I have tried composer require https://github.com/mtibben/html2text.git giving this error:

[UnexpectedValueException]
Could not parse version constraint //github.com/mtibben/html2text.git: Invalid version string "//github.com/mtibben /html2text.git"

enter image description here

How do I install html2text?


Solution

Its a php package, u can't install with composer require

U may want to read this tutorial

http://laraveldaily.com/how-to-use-external-classes-and-php-files-in-laravel-controller/



Answered By - arun

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.