PHPackages                             fabpot/sphinx-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. fabpot/sphinx-php

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

fabpot/sphinx-php
=================

Sphinx extension for PHP projects

v2.0.2(5y ago)16680.2k35MITPython

Since Sep 27Pushed 5y ago11 watchersCompare

[ Source](https://github.com/fabpot/sphinx-php)[ Packagist](https://packagist.org/packages/fabpot/sphinx-php)[ GitHub Sponsors](https://github.com/fabpot)[ RSS](/packages/fabpot-sphinx-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (19)Used By (0)

Sphinx Extensions for PHP and Symfony
=====================================

[](#sphinx-extensions-for-php-and-symfony)

Installation
------------

[](#installation)

You can install the extension by:

- running `sudo pip install git+https://github.com/fabpot/sphinx-php.git`;
- cloning the project and add `sensio` to your path (with something like `sys.path.insert(0, os.path.abspath('./path/to/sensio'))`).
- Arch Linux users can use the [AUR package](https://aur.archlinux.org/packages/python-sphinx-php-git/)

Requirements
------------

[](#requirements)

Sphinx 1.8.5 (not older, not newer) is required.

Usage
-----

[](#usage)

You can use the following extensions in your `conf.py` file:

- `sensio.sphinx.configurationblock`
- `sensio.sphinx.phpcode`
- `sensio.sphinx.bestpractice`

To enable highlighting for PHP code not between `` by default:

```
# loading PhpLexer
from sphinx.highlighting import lexers
from pygments.lexers.web import PhpLexer

# enable highlighting for PHP code not between ```` by default
lexers['php'] = PhpLexer(startinline=True)
lexers['php-annotations'] = PhpLexer(startinline=True)

```

And here is how to use PHP as the primary domain:

```
primary_domain = 'php'

```

Configure the `api_url` for links to the API:

```
api_url = 'http://api.symfony.com/master/%s'

```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 60.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~149 days

Recently: every ~49 days

Total

18

Last Release

2075d ago

Major Versions

v1.0.14 → v2.0.02020-06-25

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47313?v=4)[Fabien Potencier](/maintainers/fabpot)[@fabpot](https://github.com/fabpot)

---

Top Contributors

[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (44 commits)")[![xabbuh](https://avatars.githubusercontent.com/u/1957048?v=4)](https://github.com/xabbuh "xabbuh (7 commits)")[![wouterj](https://avatars.githubusercontent.com/u/749025?v=4)](https://github.com/wouterj "wouterj (6 commits)")[![clemens-tolboom](https://avatars.githubusercontent.com/u/371014?v=4)](https://github.com/clemens-tolboom "clemens-tolboom (3 commits)")[![weaverryan](https://avatars.githubusercontent.com/u/121003?v=4)](https://github.com/weaverryan "weaverryan (2 commits)")[![hason](https://avatars.githubusercontent.com/u/288535?v=4)](https://github.com/hason "hason (1 commits)")[![javiereguiluz](https://avatars.githubusercontent.com/u/73419?v=4)](https://github.com/javiereguiluz "javiereguiluz (1 commits)")[![maqnouch](https://avatars.githubusercontent.com/u/3692812?v=4)](https://github.com/maqnouch "maqnouch (1 commits)")[![ptomulik](https://avatars.githubusercontent.com/u/1761140?v=4)](https://github.com/ptomulik "ptomulik (1 commits)")[![rande](https://avatars.githubusercontent.com/u/14672?v=4)](https://github.com/rande "rande (1 commits)")[![sstok](https://avatars.githubusercontent.com/u/904790?v=4)](https://github.com/sstok "sstok (1 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (1 commits)")[![symball](https://avatars.githubusercontent.com/u/10624537?v=4)](https://github.com/symball "symball (1 commits)")[![derrabus](https://avatars.githubusercontent.com/u/1506493?v=4)](https://github.com/derrabus "derrabus (1 commits)")[![greg0ire](https://avatars.githubusercontent.com/u/657779?v=4)](https://github.com/greg0ire "greg0ire (1 commits)")[![dbu](https://avatars.githubusercontent.com/u/76576?v=4)](https://github.com/dbu "dbu (1 commits)")

### Embed Badge

![Health badge](/badges/fabpot-sphinx-php/health.svg)

```
[![Health](https://phpackages.com/badges/fabpot-sphinx-php/health.svg)](https://phpackages.com/packages/fabpot-sphinx-php)
```

###  Alternatives

[microman/kirby-form-block-suite

Contactform based on Kirby blocks.

412.7k1](/packages/microman-kirby-form-block-suite)[digitv/yii2bootstrap4

Yii2 Bootstrap 4 widgets

142.5k](/packages/digitv-yii2bootstrap4)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
