diff --git a/.devilbox/www/htdocs/index.php b/.devilbox/www/htdocs/index.php
index 21b656df..d6d4161f 100644
--- a/.devilbox/www/htdocs/index.php
+++ b/.devilbox/www/htdocs/index.php
@@ -440,23 +440,27 @@ function getCirle($name) {
composer |
- 3.23 |
+ getComposerVersion()) === false) {echo 'not installed';}else{echo $version;}; ?> |
drush |
- 8 |
+ getDrushVersion()) === false) {echo 'not installed';}else{echo $version;}; ?> |
drush-console |
- 8 |
+ getDrushConsoleVersion()) === false) {echo 'not installed';}else{echo $version;}; ?> |
git |
- 3.2 |
+ getGitVersion()) === false) {echo 'not installed';}else{echo $version;}; ?> |
+
+
+ node |
+ getNodeVersion()) === false) {echo 'not installed';}else{echo $version;}; ?> |
npm |
- 3.85 |
+ getNpmVersion()) === false) {echo 'not installed';}else{echo $version;}; ?> |
diff --git a/.devilbox/www/include/lib/Php.php b/.devilbox/www/include/lib/Php.php
index b8a5535f..7a979419 100644
--- a/.devilbox/www/include/lib/Php.php
+++ b/.devilbox/www/include/lib/Php.php
@@ -109,6 +109,48 @@ class Php extends _Base implements _iBase
$uid = $this->egrep('/[0-9]+/', $uid);
return $uid;
}
+ public function getGitVersion()
+ {
+ $output = null;
+ $return = $this->_exec('git --version', $output);
+
+ return $this->egrep('/[0-9.]+/', isset($output[0]) ? $output[0] : '');
+ }
+ public function getComposerVersion()
+ {
+ $output = null;
+ $return = $this->_exec('composer --version', $output);
+
+ return $this->egrep('/[0-9.]+/', isset($output[0]) ? $output[0] : '');
+ }
+ public function getDrushVersion()
+ {
+ $output = null;
+ $return = $this->_exec('drush --version', $output);
+
+ return $this->egrep('/[0-9.]+/', isset($output[0]) ? $output[0] : '');
+ }
+ public function getDrushConsoleVersion()
+ {
+ $output = null;
+ $return = $this->_exec('drush-console --version', $output);
+
+ return $this->egrep('/[0-9.]+/', isset($output[0]) ? $output[0] : '');
+ }
+ public function getNodeVersion()
+ {
+ $output = null;
+ $return = $this->_exec('node --version', $output);
+
+ return $this->egrep('/[0-9.]+/', isset($output[0]) ? $output[0] : '');
+ }
+ public function getNpmVersion()
+ {
+ $output = null;
+ $return = $this->_exec('npm --version', $output);
+
+ return $this->egrep('/[0-9.]+/', isset($output[0]) ? $output[0] : '');
+ }
/*********************************************************************************