public function badge($text, array $options = [])
    {
        $options = optionsParser($options)->append('class', 'badge');

        return self::tag('span', $text, $options->toArray());
    }
public function badge($text, array $options = [])
    {
        $options = optionsParser($options)->append('class', 'badge');

        return self::tag('span', $text, $options->toArray());
    }
public function badge ( $ text , array $ options = [ ] ) { $ options = optionsParser ( $ options ) -> append ( 'class' , 'badge' ) ; return self :: tag ( 'span' , $ text , $ options -> toArray ( ) ) ; }
Creates a badge, according to Bootstrap
@param string $text Badge text
@param array $options Array of options and HTML attributes
@return string
@see http://getbootstrap.com/components/#badges Bootstrap documentation
@uses tag()
Creates a badge according to Bootstrap