mlocati / docker-php-extension-installer

Easily install PHP extensions in Docker containers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add php-phpseclib extension

pifou25 opened this issue · comments

Hello,

I would like to add php-phpseclib extension but it does not work even while trying manually, from the last php docker image:

pi@raspberrypi:~ $ docker run -ti php bash
root@0483633a8197:/# apt update && apt install php-phpseclib
Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://deb.debian.org/debian bookworm/main arm64 Packages [8681 kB]
Get:5 http://deb.debian.org/debian bookworm-updates/main arm64 Packages [6408 B]
Get:6 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages [86.1 kB]
Fetched 9024 kB in 7s (1351 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
23 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package php-phpseclib is a virtual package provided by:
  php-seclib 1.0.20-1 [Not candidate version]
  php-phpseclib3 3.0.19-1 (= 3.0.19-1) [Not candidate version]

E: Package 'php-phpseclib' has no installation candidate

No installation candidate, whereas same command from the last debian docker image find and install the package ! Is there a way to add this package as a php extension for php 7 / 8 ?

First of all, this repository is about the install-php-extensions command, not about apt or docker-php-extension-installer.

Next, you may want to use https://packagist.org/packages/phpseclib/phpseclib