Skip to main content

sample implementation of phpdocumentor using sphinx

Project description

tk.phpautodoc

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

Setup

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

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

That’s all.

Directives

phpautomodule

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

ex:

.. phpautomodule::
   :filename: path/to/source_code.php
   :members:
   :undoc-members:

phpautoclass

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

ex:

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

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

ex:

.. phpautoclass::
   :filename: path/to/source_code.php
   :members:
   :undoc-members:

LICENSE

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.1.1.tar.gz (25.0 kB view details)

Uploaded Source

File details

Details for the file tk.phpautodoc-1.1.1.tar.gz.

File metadata

File hashes

Hashes for tk.phpautodoc-1.1.1.tar.gz
Algorithm Hash digest
SHA256 eca0bbe5231e4f18bd4fd5a9c27f19d1c6dd1cfa81615b6d8916f23b6c769c25
MD5 20e97dd3a6cdd4e1439e448334bd868e
BLAKE2b-256 a963c65aa690b20167b52b47d734b60923161f5ec2850eb46495d3e235f83db9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page