code: public function generateFromURI($string)
      {
          $badge = Badge::fromURI($string);
  
          return $this->getRenderFor($badge->getFormat())->render($badge);
      }
docs: Generate and Render a badge according to the format from an URI,
  eg license-MIT-blue.svg or I_m-liuggio-yellow.svg.
  
  @param $string
  @return Image