filsh/yii2-flags Flags widget for yii2 framework

widgetflags

yii2-flags

All icons found in https://www.gosquared.com/resources/flag-icons/ Sprite generated by http://ru.spritegen.website-performance.org/

Example usage


<?= Flags::widget([
  'flag' => 'UA',
  'type' => Flags::FLAT_24,
  'useSprite' => false // use sprite image? default is false
]); ?>

this code generate html

<style>
  .flag-UA{background-image: url("/assets/bae1ba2a/flat/24/UA.png");display: inline-block;width:24px;height:24px;}
</style>
....
<span id="w4" class="flags flag-UA"></span>
....

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

No stable releases.

Comments



No stable releases.



Unknown license
Stats
16 github stars & 6 github forks
14 downloads in the last day
337 downloads in the last 30 days
8378 total downloads