# mongodb/mongo-php-driver-legacy

Legacy MongoDB PHP driver

Repository: https://github.com/mongodb/mongo-php-driver-legacy
Canonical: https://ross.abutalabs.com/products/mongo-php-driver-legacy
Homepage: https://pecl.php.net/package/mongo
Language: PHP
License: NOASSERTION
License Family: other
Archived: true
Last push: 2022-01-31T17:54:30+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 6419, "days_push": 1675, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1074, forks 315 (observed 2026-08-28T04:03:29.057407+00:00)

## What it is
The legacy MongoDB PHP driver (ext-mongo), a PHP extension providing an interface for communicating with MongoDB databases. It is officially end-of-life and users are directed to the modern mongodb/mongo-php-driver (ext-mongodb).

## Use cases
- connect to MongoDB from PHP with the old ext-mongo extension
- maintain a legacy PHP 5 application using the mongo driver
- reference archived documentation for the legacy MongoDB PHP driver
- build the mongo.so PHP extension from source
- use GridFS file storage from legacy PHP code

## When to choose
- you are maintaining an old PHP 5 codebase that already depends on ext-mongo and cannot migrate
- you need historical documentation or source for the legacy driver

## When to avoid
- starting any new PHP project - use mongodb/mongo-php-driver instead
- running PHP 7 or later - the legacy driver does not support PHP 7
- you need bug fixes, security patches, or support for modern MongoDB server features

## Facets
- artifact type: library
- maturity: abandoned
- function: database-driver
- domain: databases, backend
- platform: php, windows
- tags: mongodb, legacy, eol, php-extension, pecl, linux, macos

## Member repositories
- mongodb/mongo-php-driver-legacy (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:29.057407+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:53:32.628155+00:00, confidence not recorded.
  - readme: https://github.com/mongodb/mongo-php-driver-legacy (fetched 2026-08-28T04:03:29.057407+00:00, sha e70494bf3f95)
  - homepage: https://pecl.php.net/package/mongo (fetched 2026-08-29T12:55:22.872131+00:00, sha f13ea7b83546)
  - site_page: https://pecl.php.net/package-changelog.php?package=mongo (fetched 2026-08-29T12:55:22.882497+00:00, sha 5cfc589f0944)
  - site_page: https://pecl.php.net/package-changelog.php?package=mongo&release=1.6.16 (fetched 2026-08-29T12:55:22.889511+00:00, sha 5cfc589f0944)
  - site_page: https://pecl.php.net/package-changelog.php?package=mongo&release=1.6.15 (fetched 2026-08-29T12:55:22.894513+00:00, sha 5cfc589f0944)
  - site_page: https://pecl.php.net/package-changelog.php?package=mongo&release=1.6.14 (fetched 2026-08-29T12:55:22.899828+00:00, sha 5cfc589f0944)
  - site_page: https://pecl.php.net/package-changelog.php?package=mongo&release=1.6.13 (fetched 2026-08-29T12:55:22.904321+00:00, sha 5cfc589f0944)
  - site_page: https://pecl.php.net/package-changelog.php?package=mongo&release=1.6.12 (fetched 2026-08-29T12:55:22.909247+00:00, sha 5cfc589f0944)
  - site_page: https://pecl.php.net/package-changelog.php?package=mongo&release=1.6.11 (fetched 2026-08-29T12:55:22.913448+00:00, sha 5cfc589f0944)
- Data as of 2026-08-30T08:39:29.467469+00:00.
