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

janakaontomatrix's avatar

Locate third party packages with composer install

I have a website build with laravel and I need to install a third party payment gateway. I ran the composer command composer require mypackage/mypackage-php. This command installed the package and I want to know where the installed files are located and how to use this package(add a class instance) within our controllers, repositories,etc.

0 likes
3 replies
AddWebContribution's avatar
Level 42

Most probably, packages are installed into root/vendor/mypackage. For configuration and use of this package you need to check at that package official site OR GitHub repository.

GhazanfarMir's avatar

All third party packages installed via Composer are installed under the vendor/{package_name} directory within root of your application.

You would need to check the documentation (if any) of the package for how to utilise their package.

Please or to participate in this conversation.