namespace app\modules\mymodule; use yii\base\Module; class MyModule extends Module { public function init() { parent::init(); // initialization code goes here } }In this code example, we create a module called "MyModule" that extends the Yii base Module class. The init() method is overridden to include any initialization code specific to this module. Package Library: Yii Framework Core The yii\base\Module class is part of the core package library of Yii Framework. Yii is an open-source, high-performance PHP framework for developing Web applications. It provides a rich set of features, including MVC, DAO, ActiveRecord, caching, error handling, and more. The Yii Framework Core package library includes all the basic and fundamental classes and components required for developing web applications.