Skip to content

Commit 121e116

Browse files
dougblackjrintoeetive
authored andcommitted
Adding documentation for requires parameter
1 parent 8d11d07 commit 121e116

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/development/addon-setup-php-file.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,5 +236,14 @@ It is also possible to set up class aliases to an arbitrary FQCN. The example be
236236
'MyVendor\Services\ClassName' => 'AnotherVendor\Services\ClassName',
237237
],
238238

239+
### `requires`
240+
241+
'requires' => [
242+
'php' => '8.0',
243+
'ee' => '7.2.0'
244+
],
245+
246+
If your add-on requires a particular version of ExpressionEngine, or a minimum version of PHP, adding `requires` to your addon.setup.php will check for minimum versions of the specified framework, and will stop installation if the minimum requirement is not meant.
247+
239248
## Accessing Add-On Information From Another Add-on
240249
See the [Addon Service](development/services/addon.md) for API access.

0 commit comments

Comments
 (0)