Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

thusfar's avatar

How to use custom PHP plugin with Laravel??

I need to install this PHP package and use it with Laravel.

https://github.com/taxamo/taxamo-php

Once I installed it with Composer how can I use it inside Laravel since it is not Laravel package?

Regards

0 likes
2 replies
thefuzzy0ne's avatar

Composer dependencies are usually autoloaded. So, you'd just do something like this (taken from the example):

$taxamo = new Taxamo\Taxamo(
    new Taxamo\APIClient('your_private_key', 'https://api.taxamo.com'));
bestmomo's avatar

Or simply :

use Taxamo\Taxamo;
...
$taxamo = new Taxamo...

Please or to participate in this conversation.