Answer the question
In order to leave comments, you need to log in
How to properly install a library in Laravel via Composer (on a specific example)?
Hello.
I found on Github a library for generating identicon and they write there on installation:
The recommended way to install Identicon is through composer.
Just add the library to your project:
composer require yzalis/identicon
Create a new Identicon object.
$identicon = new \Identicon\Identicon();
Answer the question
In order to leave comments, you need to log in
that's right, just run composer require yzalis/identicon at the root of the project.
The composer adds packages to the vendor folder, and the class is connected automatically using the autoloader.
Sometimes you need to execute additional commands, for example, to create middleware, or register services, but this is written in the instructions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question