modernkernel/yii2-flag-icon-css

This package is abandoned and no longer maintained. The author suggests using the powerkernel/yii2-flag-icon-css package instead.

flag-icon-css extension for Yii2

Installs: 11 695

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 4

Type:yii2-extension

1.0.1 2017-11-29 07:04 UTC

This package is not auto-updated.

Last update: 2022-02-01 13:00:13 UTC


README

flag-icon-css extension for Yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist powerkernel/yii2-flag-icon-css "*"

or add

"powerkernel/yii2-flag-icon-css": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= 
	\powerkernel\flagiconcss\Flag::widget([
	    	'tag' => 'span', // flag tag
		'country' => 'xx', // where xx is the ISO 3166-1-alpha-2 code of a country,
		'squared' => false, // set to true if you want to have a squared version flag
		'options' => [] // tag html options
	]); 
?>