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

dannemannen's avatar

Use PHP Integration Package in Laravel 5

Hi,

I would like to use this PHP Integration Package in my Laravel 5 App: http://sveawebpay.github.io/php-integration/

What is the best practice way to do this? Can I use composer.json and autoload the classes needed in the package?

0 likes
1 reply
dannemannen's avatar

I fixed it :)

Added the PHP Package into a new folder in the root, edited the composer.json to autoload the Includes.php file. In the controller I added one line, use Svea\SveaConfig;

Now everything works.

Please or to participate in this conversation.