Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

84 lines
3.6KB

  1. <?php
  2. /**
  3. * These are the Yii core requirements for the [[YiiRequirementChecker]] instance.
  4. * These requirements are mandatory for any Yii application.
  5. */
  6. /* @var $this YiiRequirementChecker */
  7. return array(
  8. array(
  9. 'name' => 'PHP version',
  10. 'mandatory' => true,
  11. 'condition' => version_compare(PHP_VERSION, '5.4.0', '>='),
  12. 'by' => '<a href="http://www.yiiframework.com">Yii Framework</a>',
  13. 'memo' => 'PHP 5.4.0 or higher is required.',
  14. ),
  15. array(
  16. 'name' => 'Reflection extension',
  17. 'mandatory' => true,
  18. 'condition' => class_exists('Reflection', false),
  19. 'by' => '<a href="http://www.yiiframework.com">Yii Framework</a>',
  20. ),
  21. array(
  22. 'name' => 'PCRE extension',
  23. 'mandatory' => true,
  24. 'condition' => extension_loaded('pcre'),
  25. 'by' => '<a href="http://www.yiiframework.com">Yii Framework</a>',
  26. ),
  27. array(
  28. 'name' => 'SPL extension',
  29. 'mandatory' => true,
  30. 'condition' => extension_loaded('SPL'),
  31. 'by' => '<a href="http://www.yiiframework.com">Yii Framework</a>',
  32. ),
  33. array(
  34. 'name' => 'MBString extension',
  35. 'mandatory' => true,
  36. 'condition' => extension_loaded('mbstring'),
  37. 'by' => '<a href="http://www.php.net/manual/en/book.mbstring.php">Multibyte string</a> processing',
  38. 'memo' => 'Required for multibyte encoding string processing.'
  39. ),
  40. array(
  41. 'name' => 'OpenSSL extension',
  42. 'mandatory' => false,
  43. 'condition' => extension_loaded('openssl'),
  44. 'by' => '<a href="http://www.yiiframework.com/doc-2.0/yii-base-security.html">Security Component</a>',
  45. 'memo' => 'Required by encrypt and decrypt methods.'
  46. ),
  47. array(
  48. 'name' => 'Intl extension',
  49. 'mandatory' => false,
  50. 'condition' => $this->checkPhpExtensionVersion('intl', '1.0.2', '>='),
  51. 'by' => '<a href="http://www.php.net/manual/en/book.intl.php">Internationalization</a> support',
  52. 'memo' => 'PHP Intl extension 1.0.2 or higher is required when you want to use advanced parameters formatting
  53. in <code>Yii::t()</code>, non-latin languages with <code>Inflector::slug()</code>,
  54. <abbr title="Internationalized domain names">IDN</abbr>-feature of
  55. <code>EmailValidator</code> or <code>UrlValidator</code> or the <code>yii\i18n\Formatter</code> class.'
  56. ),
  57. array(
  58. 'name' => 'ICU version',
  59. 'mandatory' => false,
  60. 'condition' => version_compare(INTL_ICU_VERSION, '49', '>='),
  61. 'by' => '<a href="http://www.php.net/manual/en/book.intl.php">Internationalization</a> support',
  62. 'memo' => 'ICU 49.0 or higher is required when you want to use <code>#</code> placeholder in plural rules
  63. (for example, plural in
  64. <a href=\"http://www.yiiframework.com/doc-2.0/yii-i18n-formatter.html#asRelativeTime%28%29-detail\">
  65. Formatter::asRelativeTime()</a>) in the <code>yii\i18n\Formatter</code> class. Your current ICU version is ' .
  66. INTL_ICU_VERSION . '.'
  67. ),
  68. array(
  69. 'name' => 'Fileinfo extension',
  70. 'mandatory' => false,
  71. 'condition' => extension_loaded('fileinfo'),
  72. 'by' => '<a href="http://www.php.net/manual/en/book.fileinfo.php">File Information</a>',
  73. 'memo' => 'Required for files upload to detect correct file mime-types.'
  74. ),
  75. array(
  76. 'name' => 'DOM extension',
  77. 'mandatory' => false,
  78. 'condition' => extension_loaded('dom'),
  79. 'by' => '<a href="http://php.net/manual/en/book.dom.php">Document Object Model</a>',
  80. 'memo' => 'Required for REST API to send XML responses via <code>yii\web\XmlResponseFormatter</code>.'
  81. ),
  82. );