Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/extension-maintainers.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ is NOT working, then please [report a bug](https://github.com/php/pie/issues).
| lib-imagemagick | ✅ | apt, apk, dnf |
| lib-event | ✅ | apt, apk, dnf |
| lib-openssl | ✅ | apt, apk, dnf |
| lib-ssh2 | ✅ | apt, apk, dnf |

#### Checking the extension will work

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class PhpBinaryPathBasedPlatformRepository extends PlatformRepository
'imagemagick' => 'MagickWand',
'event' => 'libevent',
'openssl' => 'openssl',
'ssh2' => 'libssh2',
];

private VersionParser $versionParser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ public static function default(): self
PackageManager::Microdnf->value => 'pkgconfig(openssl)',
PackageManager::Yum->value => 'pkgconfig(openssl)',
],
'ssh2' => [
PackageManager::Apt->value => 'libssh2-1-dev',
PackageManager::Apk->value => 'libssh2-dev',
PackageManager::Dnf->value => 'pkgconfig(libssh2)',
PackageManager::Microdnf->value => 'pkgconfig(libssh2)',
PackageManager::Yum->value => 'pkgconfig(libssh2)',
],
]);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ public static function librariesDetectedUsingPkgConfig(): array
'imagemagick' => ['imagemagick', 'MagickWand', '6.9.12'],
'event' => ['event', 'libevent', '2.1.12-stable'],
'openssl' => ['openssl', 'openssl', '3.0.13'],
'ssh2' => ['ssh2', 'libssh2', '1.11.0'],
];
}

Expand Down Expand Up @@ -299,6 +300,7 @@ public static function installedLibraries(): array
['imagemagick', 'MagickWand'],
['event', 'libevent'],
['openssl', 'openssl'],
['ssh2', 'libssh2'],
],
static function (array $pkg): bool {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,11 @@ public static function defaultDefinitions(): array
'openssl with dnf' => ['openssl', PackageManager::Dnf, 'pkgconfig(openssl)'],
'openssl with microdnf' => ['openssl', PackageManager::Microdnf, 'pkgconfig(openssl)'],
'openssl with yum' => ['openssl', PackageManager::Yum, 'pkgconfig(openssl)'],
'ssh2 with apt' => ['ssh2', PackageManager::Apt, 'libssh2-1-dev'],
'ssh2 with apk' => ['ssh2', PackageManager::Apk, 'libssh2-dev'],
'ssh2 with dnf' => ['ssh2', PackageManager::Dnf, 'pkgconfig(libssh2)'],
'ssh2 with microdnf' => ['ssh2', PackageManager::Microdnf, 'pkgconfig(libssh2)'],
'ssh2 with yum' => ['ssh2', PackageManager::Yum, 'pkgconfig(libssh2)'],
];
}

Expand Down
Loading