I'd like to understand how the path for various composer packages is constructed in the providers array of the app.php in Laravel. Some documentation include the line you need to copy/paste but I want to find out how to do this myself.
Example
The JWTAuth package has the following line:
Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class
However, the path to this class is tymon\jwt-auth\src\JWTAuthServiceProvider.php
I want to know how this path is constructed.
Next I want to know how I can include the Woothemes/Woocommerce api package in the providers array. How do I construct this path?
The package can be found at https://packagist.org/packages/woothemes/woocommerce-api
I have done some research and found that this package is not specifically written for Laravel. The bootstrap file woocommerce-api.php just contains the require_once() functions for the classes.
Would it be acceptable to do,
require_once base_path('vendor/woothemes/woocommerce-api/woocommerce-api.php');
in my controller file?