How to change app name in Yii2

Yii2 Default application name is “My Application”. You can change this name by editing the config/main.php. Just add the application name property in Config Array.

NOTE: If you’re using the advanced app you will need to change the frontend and backbend config/main.php files.

You can access site or app name with Yii::$app->name.


I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

I am Arjun from Hyderabad (India). I have been working as a software engineer from last 7+ years, and its my passion to learn new things and implement them as a practice. Aside from work, I likes gardening and spending time with pets. Protection Status