Answer the question
In order to leave comments, you need to log in
I don’t understand how to connect the library through composer?
I'm starting to get acquainted with composer and trying to connect the library. I loaded the composer require php-ds/php-ds package via composer , created a file in src, included autoload
require_once __DIR__ . '/../vendor/autoload.php';
use DS\Stack;
$a = new Stack();
{
"require": {
"php-ds/php-ds": "^1.2"
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question