PrestaShop / php-ps-info

Simple script that allows you to test if your current environment fulfills PrestaShop's system requirements, and offers suggestions for improvements.
MIT License
107 stars 110 forks source link

Let the script check the version of the prestashop. #22

Closed morikoff closed 5 months ago

morikoff commented 3 years ago

Gentlemen, for which version of the Prestashop this script?

PierreRambaud commented 3 years ago

Latest available

waleedelsafty commented 2 years ago

just add this to the top of the file before class PhpPsInfo

require_once 'vendor/autoload.php'; $kernel = new AppKernel(_PS_MODEDEV?'dev':'prod', _PS_MODEDEV); define('_MY_PSVERSION', $kernel::VERSION);

and change the getVersions() function to be like this :

public function getVersions() { $data = [ 'Web server' => [$this->getWebServer()], 'PHP Type' => [ strpos(PHP_SAPI, 'cgi') !== false ? 'CGI with Apache Worker or another webserver' : 'Apache Module (low performance)' ], 'Prestashop Version' =>[_MY_PSVERSION] ];

waleedelsafty commented 2 years ago

here you go https://github.com/waleedelsafty/php-ps-info

AngelJEM9213 commented 2 years ago

how do I correct this issue https://github.com/PrestaShop/php-ps-info/issues/22

matks commented 5 months ago

Hello guys I dont fully understand the conversation but