Skip to main content

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:

phpautofunction

phpautofunction works like autofunction directive in sphinx.ext.autodoc. It parses .php file, and then pick up functions to your docs.

ex:

.. phpautofunction:: my_function
   :filename: path/to/source_code.php

LICENSE

Apache License 2.0

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

Uploaded Source

File details

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

File metadata

  • Download URL: tk.phpautodoc-1.2.1.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tk.phpautodoc-1.2.1.tar.gz
Algorithm Hash digest
SHA256 e718c3fe2560b683553bdb7393858eabc1b10c6788909cc571401bf26d818d06
MD5 667b077399bbcd6e5271bdf22bce3903
BLAKE2b-256 af0ffc21d23709d7a55be1887daffef71ff1601f788494df5857e7017c7f473e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.1 This release

1 file

1.2.0

1 file

1.1.1

1 file

1.1.0

1 file

1.0.0

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page