$config = require_once('path/to/config.php'); $app = Yii::createWebApplication($config); $app->run();In this example, the configuration file is passed to the createWebApplication method, which initializes the web application instance and runs it using the run() method. This method is provided by the Yii framework itself, so it does not require any additional package libraries.