All Projects → markstory → sphinxcontrib-phpdomain

markstory / sphinxcontrib-phpdomain

Licence: other
A PHP domain for sphinx. Allows you to annotate PHP objects in your sphinx docs.

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to sphinxcontrib-phpdomain

aws-cpp-developer-guide
Content for the AWS SDK for C++ Developer Guide. For more info about the AWS C++ SDK, go to http://github.com/aws/aws-sdk-cpp
Stars: ✭ 19 (+18.75%)
Mutual labels:  sphinx-documentation
aws-java-developer-guide
Official repository of the AWS SDK for Java Developer Guide -- issues and contributions are welcome, see README for details.
Stars: ✭ 111 (+593.75%)
Mutual labels:  sphinx-documentation
moja global docs
Repository to host the moja global technical documentation
Stars: ✭ 35 (+118.75%)
Mutual labels:  sphinx-documentation
UPBGE-Docs
UPBGE Manual
Stars: ✭ 12 (-25%)
Mutual labels:  sphinx-documentation
MapServer-documentation
Source repository for the MapServer documentation, for the live website. Please submit pull requests to the 'main' branch.
Stars: ✭ 29 (+81.25%)
Mutual labels:  sphinx-documentation

PHP Domain for Sphinx

Author: Mark Story <mark at mark-story.com>

About

A domain for sphinx >= 1.3 that provides language support for PHP.

PHP Domain supports following objects:

  • Global variable
  • Global function
  • Constant
  • Namespace
    • Function
    • Class
  • Class
    • Class constant
    • Instance methods
    • Static methods
    • Properties

Note

This domain expresses methods and attribute names like this:

Class::method_name
Class::$attribute_name

You address classes/functions in namespaces using \ syntax as you would in PHP:

Package\Subpackage\Class

URLs

PyPI:http://pypi.python.org/pypi/sphinxcontrib-phpdomain
Detail Document:http://packages.python.org/sphinxcontrib-phpdomain

Quick Sample

This is source:

.. php:class:: DateTime

  Datetime class

  .. php:method:: setDate($year, $month, $day)

      Set the date.

      :param int $year: The year.
      :param int $month: The month.
      :param int $day: The day.
      :returns: Either false on failure, or the datetime object for method chaining.


  .. php:method:: setTime($hour, $minute[, $second])

      Set the time.

      :param int $hour: The hour
      :param int $minute: The minute
      :param int $second: The second
      :returns: Either false on failure, or the datetime object for method chaining.

  .. php:const:: ATOM

      Y-m-d\TH:i:sP

Result

.. php:class:: DateTime

  Datetime class

  .. php:method:: setDate($year, $month, $day)

      Set the date.

      :param int $year: The year.
      :param int $month: The month.
      :param int $day: The day.
      :returns: Either false on failure, or the DateTime object for method chaining.


  .. php:method:: setTime($hour, $minute[, $second])

      Set the time.

      :param int $hour: The hour
      :param int $minute: The minute
      :param int $second: The second
      :returns: Either false on failure, or the DateTime object for method chaining.

  .. php:const:: ATOM

      Y-m-d\TH:i:sP

Cross referencing

From other place, you can create cross reference like that:

You can modify a DateTime's date using :php:meth:`DateTime::setDate`.

Result

You can modify a DateTime's date using :php:meth:`DateTime::setDate`.

Install

You can install the phpdomain using pip:

pip install -U sphinxcontrib-phpdomain
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].