code: public function captcha()
      {
          Session::start();
          $builder = new CaptchaBuilder();
          $builder->setBackgroundColor(255,255,255);
          $builder->build();
          Session::set('yt_captcha', $builder->getPhrase());
          $builder->save('out.jpg');
      }
docs: Капча