// Get the app path $appPath = dirname(__FILE__) . '/myapp/'; // Use the app path to access a file require $appPath . 'config/db.php';
// Get the app path $appPath = __DIR__; // Load Composer autoloader require_once $appPath . '/vendor/autoload.php'; // Use a library loaded by Composer use Monolog\Logger; $log = new Logger('myapp');Package library: Composer