feat: Add PHP version module (#244)

This commit is contained in:
Stephen Ball
2019-12-05 18:04:27 +00:00
committed by Matan Kushner
parent 78ca70a517
commit 46904e5045
10 changed files with 191 additions and 0 deletions
+25
View File
@@ -841,6 +841,31 @@ and `poetry` packages.
symbol = "🎁 "
```
## PHP
The `php` module shows the currently installed version of PHP.
The module will be shown if any of the following conditions are met:
- The current directory contains a `composer.json` file
- The current directory contains a `.php` file
### Options
| Variable | Default | Description |
| ---------- | ------------ | ------------------------------------------------------ |
| `symbol` | `"🐘 "` | The symbol used before displaying the version of PHP. |
| `style` | `"bold red"` | The style for the module. |
| `disabled` | `false` | Disables the `php` module. |
### Example
```toml
# ~/.config/starship.toml
[php]
symbol = "🔹 "
```
## Python
The `python` module shows the currently installed version of Python.