captcha.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. return [
  3. 'disable' => env('CAPTCHA_DISABLE', false),
  4. 'characters' => ['0', '1', '2', '3', '4', '6', '7', '8', '9'],
  5. 'default' => [
  6. 'length' => 5,
  7. 'width' => 300,
  8. 'height' => 150,
  9. 'quality' => 90,
  10. 'math' => false,
  11. 'expire' => 60,
  12. 'encrypt' => true,
  13. ],
  14. 'math' => [
  15. 'length' => 9,
  16. 'width' => 120,
  17. 'height' => 36,
  18. 'quality' => 90,
  19. 'math' => true,
  20. ],
  21. 'flat' => [
  22. 'length' => 6,
  23. 'width' => 160,
  24. 'height' => 46,
  25. 'quality' => 90,
  26. 'lines' => 6,
  27. 'bgImage' => false,
  28. 'bgColor' => '#ecf2f4',
  29. 'fontColors' => ['#2c3e50', '#c0392b', '#16a085', '#c0392b', '#8e44ad', '#303f9f', '#f57c00', '#795548'],
  30. 'contrast' => -5,
  31. ],
  32. 'mini' => [
  33. 'length' => 3,
  34. 'width' => 60,
  35. 'height' => 32,
  36. ],
  37. 'inverse' => [
  38. 'length' => 5,
  39. 'width' => 120,
  40. 'height' => 36,
  41. 'quality' => 90,
  42. 'sensitive' => true,
  43. 'angle' => 12,
  44. 'sharpen' => 10,
  45. 'blur' => 2,
  46. 'invert' => true,
  47. 'contrast' => -5,
  48. ]
  49. ];