Integrating Yii2 vendors who use namespaces (will gladly pay!)

Hello,

I’m trying to add a vendor to the advanced Yii2 template. They are using namespaces and I’m pulling my hair out. I believe the problem is that they are creating namespaces in each of their lib files and it’s conflicting with Yii2. The source is https://github.com/Exeu/apai-io.

The first person to give solution I will gladly pay $50 as this is an emergency. I have paid people before on this forum for successful solutions

In the vendor autoload.php I added

require_once DIR . ‘/apaiiomaster/lib/ApaiIO/ApaiIO.php’;

In the controller I would like to use the classes I put

use ApaiIO\ApaiIO;

use ApaiIO\Configuration\GenericConfiguration;

use ApaiIO\Operations\Lookup;

Please let me know a solution and your email. If it works I will gladly pay as I’m really struggling.

Thanks,

Jim

Have you used composer to install this library?

There were some vendors with dev libraries so I didn’t want to use composer yet but I changed the config and ran it and it works great. Thanks! I’ll IM you for your paypal info.

Thanks,

Jim