bashir
Sample extenstion for Yii2, (*1)
Hello World
Just A Hello World Yii2 Extension, (*2)
Installation
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
For linux, (*5)
sudo composer require --prefer-dist bashir/hello-world "*"
OR
sudo composer.phar require --prefer-dist bashir/hello-world "*"
For Windows, (*6)
php composer.phar require --prefer-dist bashir/hello-world "*"
or add, (*7)
"bashir/hello-world": "*"
Run Command
sudo composer.phar update
to the require section of your composer.json
file., (*8)
Usage
Once the extension is installed, simply use it in your code by :, (*9)
= HelloWorld\SayHello::world(); ?>