Giter Site home page Giter Site logo

doxphp's Introduction

doxphp.php

This script is a general language filter for Doxygen documentation, useful for languages not supported by Doxygen.

NAME

doxphp.php

DESCRIPTION

This script creates a php-like source code, starting from a DocBlock documented source file.
Doesn't matter the programming language of the source file, the script analyze only the DocBlocks inside and create minimal source code declaration for Doxygen. The output can be interpreted by Doxygen as standard PHP code.

GENERAL INFO & LIMITATIONS

Only @class, @fn, and @var Doxygen commands are managed by this script (with '@', not '\'!). All other Doxygen command can exists into DocBlocks but will be ignored by the script (not by Doxygen). The whole source code is not reported to the output.
The output contains only the original DocBlocks, and below of each of them, one row representing the declaration of Class, Function or Variable to be documented. Only documented section of the source file will be processed. DocBlocks must be defined by '/** ... */' multi-line sections (not "//").

Classes

Use the command @class followed by the class name. The script will report to the output the DocBlock, followed by the class definition.
IMPORTANT: do not place other comments after @class <className>, on the same line. Use the following lines of the DocBlock.

Functions

Use the command @fn followed by the function name, including parameters.

Example: @fn foo(bar)

This script will report to the output the DocBlock, followed by the function definition. If the function belongs to a class, it's necessary to tell this to Doxygen by the command @memberof <className>. IMPORTANT: do not place other comments after @fn <functionName>, on the same line. Use the following lines of the DocBlock.

Variables

Use the command @var followed by the variable name.

Example: @var foo

If the variable belongs to a class, it's necessary to tell this to Doxygen by the command @memberof <className>. IMPORTANT: do not place other comments after @var <variableName>, on the same line. Use the following lines of the DocBlock.

Doxygen Configuration

From Doxygen configuration file (e.g. for javascript source code):

FILTER_PATTERNS = *.js="php /doxphp.php"

License

License Aapache-2.0.

Your contribution will be appreciate: Donate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.