Component (Yii)

Since Craft CMS is built on the Yii PHP frame­work, it inher­its many of Yii’s core con­cepts. A com­po­nent in Yii is a reusable soft­ware unit that encap­su­lates spe­cif­ic func­tion­al­i­ty and can be eas­i­ly com­bined to build com­plex appli­ca­tions. Com­po­nents pro­vide a way to orga­nize and mod­u­lar­ize code with­in Craft CMS plu­g­ins and modules.

In a Craft CMS plu­g­in or mod­ule, you reg­is­ter the com­po­nents you’ll be using in your code.

See: Yii Appli­ca­tion Components