I install php/imap through composer

Installed package and site directory
Help solve fatal error
PHP v7.4
what am I doing wrong?
I install php/imap through composer

Installed package and site directory
Help solve fatal error
PHP v7.4
what am I doing wrong?
Make sure to autoload your vendor directory. Not sure what namespace that package uses so you might need to use ... under that, or fully qualify that package if you haven't done so.
<?php
require __DIR__ . '/vendor/autoload.php';
...
Notice, it is looking for the vendor directory inside your www directory so you can either,
composer require... from inside your www directory. This will generate the vendor directory inside the www directory, orrequire __DIR__ . '/../vendor/autoload.php';. Notice the /../If I were you, I'd go with #1 and have the vendor directory inside you www. This is the standard way to do things.