requirements.php 1.21 KB
Newer Older
1 2
<?php
/**
3
 * This is the Yii core requirements for the [[YiiRequirementChecker]] instance.
4
 * These requirements are mandatory for any Yii application.
5 6 7 8 9
 */
return array(
	array(
		'name' => 'PHP version',
		'mandatory' => true,
10
		'condition' => version_compare(PHP_VERSION, '5.3.3', '>='),
11
		'by' => '<a href="http://www.yiiframework.com">Yii Framework</a>',
12
		'memo' => 'PHP 5.3.3 or higher is required.',
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
	),
	array(
		'name' => 'Reflection extension',
		'mandatory' => true,
		'condition' => class_exists('Reflection', false),
		'by' => '<a href="http://www.yiiframework.com">Yii Framework</a>',
	),
	array(
		'name' => 'PCRE extension',
		'mandatory' => true,
		'condition' => extension_loaded('pcre'),
		'by' => '<a href="http://www.yiiframework.com">Yii Framework</a>',
	),
	array(
		'name' => 'SPL extension',
		'mandatory' => true,
		'condition' => extension_loaded('SPL'),
		'by' => '<a href="http://www.yiiframework.com">Yii Framework</a>',
	),
	array(
		'name' => 'MBString extension',
		'mandatory' => true,
		'condition' => extension_loaded('mbstring'),
		'by' => '<a href="http://www.php.net/manual/en/book.mbstring.php">Multibyte string</a> processing',
		'memo' => 'Required for multibyte encoding string processing.'
	),
);