Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PHP version to core:status #5211

Closed
gitressa opened this issue Aug 20, 2022 · 0 comments · Fixed by #5212
Closed

Add PHP version to core:status #5211

gitressa opened this issue Aug 20, 2022 · 0 comments · Fixed by #5212

Comments

@gitressa
Copy link
Contributor

It would be great to also include PHP version, when you run drush core:status:

$ drush core:status
Drupal version   : 10.1.0-dev                        
Site URI         : http://default                    
DB driver        : mysql                             
DB hostname      : database                          
DB port          :                                   
DB username      : drupal10                          
DB name          : drupal10                          
Database         : Connected                         
Drupal bootstrap : Successful                        
Default theme    : bootstrap5                        
Admin theme      : claro                             
PHP binary       : /usr/local/bin/php                
PHP OS           : Linux                             
PHP version      : 8.1.6                             << Add PHP version
Drush script     : /app/vendor/bin/drush             
Drush version    : 11.1.1                            
[...]                    

$ drush core:status --fields=php-version
PHP version : 8.1.6 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant