@ -26,85 +26,85 @@ $requirementsChecker = new YiiRequirementChecker(); 
			
		
	
		
		
			
				
					
					/** /**  
			
		
	
		
		
			
				
					
					 * Adjust requirements according to your application specifics.  * Adjust requirements according to your application specifics.  
			
		
	
		
		
			
				
					
					 */  */  
			
		
	
		
		
			
				
					
					$requirements = [  $requirements = array(   
			
				
				
			
		
	
		
		
	
		
		
			
				
					
						// Database : 	// Database :  
			
		
	
		
		
			
				
					
						[  	array(   
			
				
				
			
		
	
		
		
	
		
		
			
				
					
							'name' => 'PDO extension', 		'name' => 'PDO extension',  
			
		
	
		
		
			
				
					
							'mandatory' => true, 		'mandatory' => true,  
			
		
	
		
		
			
				
					
							'condition' => extension_loaded('pdo'), 		'condition' => extension_loaded('pdo'),  
			
		
	
		
		
			
				
					
							'by' => 'All < a  href = "http://www.yiiframework.com/doc/api/#system.db" > DB-related classes< / a > ', 		'by' => 'All < a  href = "http://www.yiiframework.com/doc/api/#system.db" > DB-related classes< / a > ',  
			
		
	
		
		
			
				
					
						] , 	) ,  
			
				
				
			
		
	
		
		
			
				
					
						[  	array(   
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
							'name' => 'PDO SQLite extension', 		'name' => 'PDO SQLite extension',  
			
		
	
		
		
			
				
					
							'mandatory' => false, 		'mandatory' => false,  
			
		
	
		
		
			
				
					
							'condition' => extension_loaded('pdo_sqlite'), 		'condition' => extension_loaded('pdo_sqlite'),  
			
		
	
		
		
			
				
					
							'by' => 'All < a  href = "http://www.yiiframework.com/doc/api/#system.db" > DB-related classes< / a > ', 		'by' => 'All < a  href = "http://www.yiiframework.com/doc/api/#system.db" > DB-related classes< / a > ',  
			
		
	
		
		
			
				
					
							'memo' => 'Required for SQLite database.', 		'memo' => 'Required for SQLite database.',  
			
		
	
		
		
			
				
					
						] , 	) ,  
			
				
				
			
		
	
		
		
			
				
					
						[  	array(   
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
							'name' => 'PDO MySQL extension', 		'name' => 'PDO MySQL extension',  
			
		
	
		
		
			
				
					
							'mandatory' => false, 		'mandatory' => false,  
			
		
	
		
		
			
				
					
							'condition' => extension_loaded('pdo_mysql'), 		'condition' => extension_loaded('pdo_mysql'),  
			
		
	
		
		
			
				
					
							'by' => 'All < a  href = "http://www.yiiframework.com/doc/api/#system.db" > DB-related classes< / a > ', 		'by' => 'All < a  href = "http://www.yiiframework.com/doc/api/#system.db" > DB-related classes< / a > ',  
			
		
	
		
		
			
				
					
							'memo' => 'Required for MySQL database.', 		'memo' => 'Required for MySQL database.',  
			
		
	
		
		
			
				
					
						] , 	) ,  
			
				
				
			
		
	
		
		
			
				
					
						[  	array(   
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
							'name' => 'PDO PostgreSQL extension', 		'name' => 'PDO PostgreSQL extension',  
			
		
	
		
		
			
				
					
							'mandatory' => false, 		'mandatory' => false,  
			
		
	
		
		
			
				
					
							'condition' => extension_loaded('pdo_pgsql'), 		'condition' => extension_loaded('pdo_pgsql'),  
			
		
	
		
		
			
				
					
							'by' => 'All < a  href = "http://www.yiiframework.com/doc/api/#system.db" > DB-related classes< / a > ', 		'by' => 'All < a  href = "http://www.yiiframework.com/doc/api/#system.db" > DB-related classes< / a > ',  
			
		
	
		
		
			
				
					
							'memo' => 'Required for PostgreSQL database.', 		'memo' => 'Required for PostgreSQL database.',  
			
		
	
		
		
			
				
					
						] , 	) ,  
			
				
				
			
		
	
		
		
	
		
		
			
				
					
						// Cache : 	// Cache :  
			
		
	
		
		
			
				
					
						[  	array(   
			
				
				
			
		
	
		
		
	
		
		
			
				
					
							'name' => 'Memcache extension', 		'name' => 'Memcache extension',  
			
		
	
		
		
			
				
					
							'mandatory' => false, 		'mandatory' => false,  
			
		
	
		
		
			
				
					
							'condition' => extension_loaded('memcache') || extension_loaded('memcached'), 		'condition' => extension_loaded('memcache') || extension_loaded('memcached'),  
			
		
	
		
		
			
				
					
							'by' => '< a  href = "http://www.yiiframework.com/doc/api/CMemCache" > CMemCache< / a > ', 		'by' => '< a  href = "http://www.yiiframework.com/doc/api/CMemCache" > CMemCache< / a > ',  
			
		
	
		
		
			
				
					
							'memo' => extension_loaded('memcached') ? 'To use memcached set < a  href = "http://www.yiiframework.com/doc/api/CMemCache#useMemcached-detail" > CMemCache::useMemcached< / a >  to < code > true< / code > .' : '' 		'memo' => extension_loaded('memcached') ? 'To use memcached set < a  href = "http://www.yiiframework.com/doc/api/CMemCache#useMemcached-detail" > CMemCache::useMemcached< / a >  to < code > true< / code > .' : ''  
			
		
	
		
		
			
				
					
						] , 	) ,  
			
				
				
			
		
	
		
		
			
				
					
						[  	array(   
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
							'name' => 'APC extension', 		'name' => 'APC extension',  
			
		
	
		
		
			
				
					
							'mandatory' => false, 		'mandatory' => false,  
			
		
	
		
		
			
				
					
							'condition' => extension_loaded('apc'), 		'condition' => extension_loaded('apc'),  
			
		
	
		
		
			
				
					
							'by' => '< a  href = "http://www.yiiframework.com/doc/api/CApcCache" > CApcCache< / a > ', 		'by' => '< a  href = "http://www.yiiframework.com/doc/api/CApcCache" > CApcCache< / a > ',  
			
		
	
		
		
			
				
					
						] , 	) ,  
			
				
				
			
		
	
		
		
	
		
		
			
				
					
						// Additional PHP extensions : 	// Additional PHP extensions :  
			
		
	
		
		
			
				
					
						[  	array(   
			
				
				
			
		
	
		
		
	
		
		
			
				
					
							'name' => 'Mcrypt extension', 		'name' => 'Mcrypt extension',  
			
		
	
		
		
			
				
					
							'mandatory' => false, 		'mandatory' => false,  
			
		
	
		
		
			
				
					
							'condition' => extension_loaded('mcrypt'), 		'condition' => extension_loaded('mcrypt'),  
			
		
	
		
		
			
				
					
							'by' => '< a  href = "http://www.yiiframework.com/doc/api/CSecurityManager" > CSecurityManager< / a > ', 		'by' => '< a  href = "http://www.yiiframework.com/doc/api/CSecurityManager" > CSecurityManager< / a > ',  
			
		
	
		
		
			
				
					
							'memo' => 'Required by encrypt and decrypt methods.' 		'memo' => 'Required by encrypt and decrypt methods.'  
			
		
	
		
		
			
				
					
						] , 	) ,  
			
				
				
			
		
	
		
		
	
		
		
			
				
					
						// PHP ini : 	// PHP ini :  
			
		
	
		
		
			
				
					
						'phpSafeMode' => [  	'phpSafeMode' => array(   
			
				
				
			
		
	
		
		
	
		
		
			
				
					
							'name' => 'PHP safe mode', 		'name' => 'PHP safe mode',  
			
		
	
		
		
			
				
					
							'mandatory' => false, 		'mandatory' => false,  
			
		
	
		
		
			
				
					
							'condition' => $requirementsChecker->checkPhpIniOff("safe_mode"), 		'condition' => $requirementsChecker->checkPhpIniOff("safe_mode"),  
			
		
	
		
		
			
				
					
							'by' => 'File uploading and console command execution', 		'by' => 'File uploading and console command execution',  
			
		
	
		
		
			
				
					
							'memo' => '"safe_mode" should be disabled at php.ini', 		'memo' => '"safe_mode" should be disabled at php.ini',  
			
		
	
		
		
			
				
					
						] , 	) ,  
			
				
				
			
		
	
		
		
			
				
					
						'phpExposePhp' => [  	'phpExposePhp' => array(   
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
							'name' => 'Expose PHP', 		'name' => 'Expose PHP',  
			
		
	
		
		
			
				
					
							'mandatory' => false, 		'mandatory' => false,  
			
		
	
		
		
			
				
					
							'condition' => $requirementsChecker->checkPhpIniOff("expose_php"), 		'condition' => $requirementsChecker->checkPhpIniOff("expose_php"),  
			
		
	
		
		
			
				
					
							'by' => 'Security reasons', 		'by' => 'Security reasons',  
			
		
	
		
		
			
				
					
							'memo' => '"expose_php" should be disabled at php.ini', 		'memo' => '"expose_php" should be disabled at php.ini',  
			
		
	
		
		
			
				
					
						] , 	) ,  
			
				
				
			
		
	
		
		
			
				
					
						'phpAllowUrlInclude' => [  	'phpAllowUrlInclude' => array(   
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
							'name' => 'PHP allow url include', 		'name' => 'PHP allow url include',  
			
		
	
		
		
			
				
					
							'mandatory' => false, 		'mandatory' => false,  
			
		
	
		
		
			
				
					
							'condition' => $requirementsChecker->checkPhpIniOff("allow_url_include"), 		'condition' => $requirementsChecker->checkPhpIniOff("allow_url_include"),  
			
		
	
		
		
			
				
					
							'by' => 'Security reasons', 		'by' => 'Security reasons',  
			
		
	
		
		
			
				
					
							'memo' => '"allow_url_include" should be disabled at php.ini', 		'memo' => '"allow_url_include" should be disabled at php.ini',  
			
		
	
		
		
			
				
					
						] , 	) ,  
			
				
				
			
		
	
		
		
			
				
					
						'phpSmtp' => [  	'phpSmtp' => array(   
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
							'name' => 'PHP mail SMTP', 		'name' => 'PHP mail SMTP',  
			
		
	
		
		
			
				
					
							'mandatory' => false, 		'mandatory' => false,  
			
		
	
		
		
			
				
					
							'condition' => strlen(ini_get('SMTP'))>0, 		'condition' => strlen(ini_get('SMTP'))>0,  
			
		
	
		
		
			
				
					
							'by' => 'Email sending', 		'by' => 'Email sending',  
			
		
	
		
		
			
				
					
							'memo' => 'PHP mail SMTP server required', 		'memo' => 'PHP mail SMTP server required',  
			
		
	
		
		
			
				
					
						] , 	) ,  
			
				
				
			
		
	
		
		
			
				
					
					] ;) ; 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					$requirementsChecker->checkYii()->check($requirements)->render(); $requirementsChecker->checkYii()->check($requirements)->render();