phpseclib/phpseclib
PHP Secure Communications Library observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 99
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0.0
- age_days: 5202
- days_rel: 7
- days_push: 7
- n_releases_24m: 33
Adoption not part of the score
5585 stars · 907 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A MIT-licensed pure-PHP library providing implementations of SSH-2, SFTP, X.509/CSR/CRL/PFX/CMS, and a wide range of cryptographic primitives including RSA, ECDSA, Ed25519, AES, and ChaCha20-Poly1305. It requires no PHP extensions, optionally using OpenSSL, GMP, or libsodium for speed, with multiple LTS branches supporting PHP from 4.4 to 8.1+.
Use cases
- connect to ssh servers from php
- upload files over sftp in php
- encrypt and decrypt data with rsa in php
- generate and parse x509 certificates
- sign and verify jwt-like signatures with ed25519
- encrypt files with aes-gcm or chacha20-poly1305
- create certificate signing requests (csr)
- interoperate with openssl, java, or python crypto
When to choose
- you need SSH/SFTP or PKI functionality in PHP without relying on shell exec or extensions
- you need portability across shared hosts where openssl/gmp may be unavailable
- you need fine-grained control over crypto parameters like OAEP hashes or cipher modes
- you need to support old PHP versions via the 1.0/2.0/3.0 LTS branches
When to avoid
- you only need basic TLS/HTTPS - use curl or guzzle instead
- you need a full SSH client with terminal emulation or port forwarding - use openssh
- you need maximum crypto performance and can require the openssl extension directly
- you need languages other than PHP
Facets
library · maturity stable
cryptography ssh security serialization security developer-tools web-development php cross-platform ssh2 sftp x509 rsa aes pure-php pki asn1 elliptic-curves
10 sources
- readme: https://github.com/phpseclib/phpseclib · fetched 2026-08-28 · fa09d07ad7d6
- homepage: http://phpseclib.com/ · fetched 2026-08-29 · 37b233d83cc5
- site_page: https://phpseclib.com/docs/intro/why · fetched 2026-08-29 · 4d44d524e971
- site_page: https://phpseclib.com/docs/3.0/intro/why · fetched 2026-08-29 · 708f096ae153
- site_page: https://phpseclib.com/docs/ssh2/connect · fetched 2026-08-29 · 7340b8dc3b38
- site_page: https://phpseclib.com/docs/publickeys/overview · fetched 2026-08-29 · 67a546007358
- site_page: https://phpseclib.com/docs/symmetric/overview · fetched 2026-08-29 · 08adb5cf6fda
- site_page: https://phpseclib.com/docs/file/overview · fetched 2026-08-29 · c05b4df431bc
- site_page: https://phpseclib.com/docs/intro/speed · fetched 2026-08-29 · 88e6c709c34c
- site_page: https://phpseclib.com/docs/interop/overview · fetched 2026-08-29 · 390128b2e3c1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| phpseclib/phpseclib | main | 99 |
For agents
markdown · JSON · MCP: product_card(name="phpseclib/phpseclib")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem