$basePath = Yii::getAlias('@app');
$webRoot = Yii::getAlias('@webroot');
$customPath = Yii::getAlias('@myalias/path/to/file.txt');This code retrieves the file path to a custom alias named '@myalias' that points to a file located in the 'path/to' directory. The package library for getAlias is the Yii framework, specifically the Yii Base module.