captcha.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. return [
  3. 'characters' => '2346789abcdefghjmnpqrtuxyzABCDEFGHJMNPQRTUXYZ',
  4. 'default' => [
  5. 'length' => 9,
  6. 'width' => 120,
  7. 'height' => 36,
  8. 'quality' => 90,
  9. 'math' => true,
  10. ],
  11. 'flat' => [
  12. 'length' => 6,
  13. 'width' => 160,
  14. 'height' => 46,
  15. 'quality' => 90,
  16. 'lines' => 6,
  17. 'bgImage' => false,
  18. 'bgColor' => '#ecf2f4',
  19. 'fontColors'=> ['#2c3e50', '#c0392b', '#16a085', '#c0392b', '#8e44ad', '#303f9f', '#f57c00', '#795548'],
  20. 'contrast' => -5,
  21. ],
  22. 'mini' => [
  23. 'length' => 3,
  24. 'width' => 60,
  25. 'height' => 32,
  26. ],
  27. 'inverse' => [
  28. 'length' => 5,
  29. 'width' => 120,
  30. 'height' => 36,
  31. 'quality' => 90,
  32. 'sensitive' => true,
  33. 'angle' => 12,
  34. 'sharpen' => 10,
  35. 'blur' => 2,
  36. 'invert' => true,
  37. 'contrast' => -5,
  38. ]
  39. ];