Skip to content

Commit 6df445e

Browse files
authored
Merge pull request #422 from macintoshplus/doc-os-families
Document OS compatibility restrictions for extensions
2 parents e74075a + 863a7b8 commit 6df445e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/extension-maintainers.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,23 @@ change the behaviour of downloading the source package.
241241
* `{ExtensionName}-{Version}.tgz` (this is intended for backwards
242242
compatibility with PECL packages)
243243

244+
##### `os-families` restrictions
245+
246+
The `os-families` and `os-families-exclude` directive allow extention maintainers
247+
to restrict the Operating System compatibility.
248+
249+
* `os-families` An array of OS families to mark as compatible with the extension.
250+
(e.g. `"os-families": ["windows"]` for an extension only available on Windows)
251+
* `os-families-exclude` An array of OS families to mark as incompatible with the
252+
extension. (e.g. `"os-families-exclude": ["windows"]` for an extension that
253+
cannot be installed available on Windows)
254+
255+
The list of accepted OS families: "windows", "bsd", "darwin", "solaris", "linux",
256+
"unknown"
257+
258+
> [!WARNING]
259+
> Only one of `os-families` and `os-families-exclude` can be defined.
260+
244261
#### Extension dependencies
245262

246263
Extension authors may define some dependencies in `require`, but practically,

0 commit comments

Comments
 (0)