Skip to main content

sample implementation of phpdocumentor using sphinx

Project description


tk.phpautodoc is sphinx extension to embed PHPDocs to sphinx document. It works like sphinx.ext.autodoc.


Install this package and add ‘sphinxcontrib_phpautodoc’ to extensions list:

# in
extensions += ['sphinxcontrib.phpdomain', 'sphinxcontrib_phpautodoc']

That’s all.



phpautomodule works like automodule directive in sphinx.ext.autodoc. It parses .php file, and then pick up functions, classes and methods to your docs.


.. phpautomodule::
   :filename: path/to/source_code.php


phpautoclass works like autoclass directive in sphinx.ext.autodoc. It parses .php file, and then pick up classes and their members to your docs.


.. phpautoclass:: MyClass,MySubClass
   :filename: path/to/source_code.php

If you do not specify any class-names, phpautoclass picks up all classes in .php file.


.. phpautoclass::
   :filename: path/to/source_code.php


Apache License 2.0

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tk.phpautodoc-1.0.0.tar.gz (21.4 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page