SlideShare ist ein Scribd-Unternehmen logo
1 von 38
phpDocumentor

         Rimpei Ogawa




   2009/6/29 -
• “Writing good documentation is essential
    to the success of any software project.”
    http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/
    tutorial_phpDocumentor.pkg.html


•                OSS
•
    ➡

•
    ➡   API
phpDocumentor
phpDocumentor
• Automatic Documentation System
phpDocumentor
• Automatic Documentation System
• for PHP code
phpDocumentor
• Automatic Documentation System
• for PHP code
• written in PHP
phpDocumentor
• Automatic Documentation System
• for PHP code
• written in PHP
PHP        PHP
API
• PEAR API Documentation
http://pear.php.net/package/Auth/docs/latest/
• Zend Framework
http://framework.zend.com/apidoc/core/
• symfony
http://www.symfony-project.org/api/1_2/
•             PEAR

    ‣ pear install PhpDocumentor
•
    •

    • DocBlock
DocBlock
DocBlock
/**
DocBlock
/**
 * Short description
 *
DocBlock
/**
 * Short description
 *
 * Long description. This is an sample function
 * to show the DocBlock format.
 *
 * 2nd paragraph of long description.
 *
DocBlock
/**
 * Short description
 *
 * Long description. This is an sample function
 * to show the DocBlock format.
 *
 * 2nd paragraph of long description.
 *
 * @tag1
 * @tag2
 */
function example()
Short Description
• DocBlock
•
•3                   1


  Long Description
Long Description
•
            SGML

•

•         <p>
Long Description
• HTML
  • b, code, br, i, kbd, li, ol, p, pre, samp, ul, var
•             Short description
Long Description
•
/**
 * -   unordered item A
 * -   unordered item B
 *
 * 1   ordered item A
 * 2   ordered item B
 */
Long Description
•
    • <ul>   “-”, “+”, “#”, “o”

    • <ol>   “1”, “1.”

    •                             NG

    •
Tags
•@
 • @author @package @param @version
       30

• {@tagname}
@author
@author authorname <name@example.com>


•
•
@license
@license URL name of license


•                  URL

•
@license http://opensource.org/licenses/gpl-
license.php GNU Public License
@deprecated
@deprecated version/info string


•

•
@deprecated deprecated since version 2.0

@deprecated
@package
•

•              DocBlock
    @package
@subpackage
•

•   @package
@param
 @param datatype $paramname description


•
• Type Hinting                PHP

•
 @param int $num

 @param bool|string $foo a bool or string param
@return
@return datatype description


•
•                                 PHP

•
@return mixed

@return FooClass|false FooClass object or error
PHP


http://www.php.net/manual/ja/language.types.php
PHP5
•

    • @abstract
    • @access {private|protected|public}
    • @final
    • @static
DocBlock Template
•


•          DocBlock Template
DocBlock Template
/**#@+
 * @access private
 * @var string
 */
var $_var1 = ‘Hello’;
var $_var2 = ‘World’;
...
var $_varN;
/**#@-*/

//
var $varX = array();
• phpdoc
•

 • HTML
   <meta>   OK
• -d :

• -t :
• -o :
•

    •   HTML -                Smarty

    •   CHM - Windows Help

    •   PDF - Adobe Acrobat

    •   XML:DocBook -
Web


http://www.phpdoc.org/
20090629 Using phpDocumentor

Weitere ähnliche Inhalte

Was ist angesagt?

Consuming RESTful services in PHP
Consuming RESTful services in PHPConsuming RESTful services in PHP
Consuming RESTful services in PHP
Zoran Jeremic
 

Was ist angesagt? (15)

Misconfigured CORS, Why being secure isn't getting easier. AppSec USA 2016
Misconfigured CORS, Why being secure isn't getting easier. AppSec USA 2016Misconfigured CORS, Why being secure isn't getting easier. AppSec USA 2016
Misconfigured CORS, Why being secure isn't getting easier. AppSec USA 2016
 
PHP-GTK
PHP-GTKPHP-GTK
PHP-GTK
 
Build Your Own Tools
Build Your Own ToolsBuild Your Own Tools
Build Your Own Tools
 
PHP And Web Services: Perfect Partners
PHP And Web Services: Perfect PartnersPHP And Web Services: Perfect Partners
PHP And Web Services: Perfect Partners
 
Python cgi programming
Python cgi programmingPython cgi programming
Python cgi programming
 
05 File Handling Upload Mysql
05 File Handling Upload Mysql05 File Handling Upload Mysql
05 File Handling Upload Mysql
 
PHP Function
PHP Function PHP Function
PHP Function
 
PHP file handling
PHP file handling PHP file handling
PHP file handling
 
How web crawlers work
How web crawlers workHow web crawlers work
How web crawlers work
 
CGI Presentation
CGI PresentationCGI Presentation
CGI Presentation
 
PHP in one presentation
PHP in one presentationPHP in one presentation
PHP in one presentation
 
Php intro
Php introPhp intro
Php intro
 
Consuming RESTful services in PHP
Consuming RESTful services in PHPConsuming RESTful services in PHP
Consuming RESTful services in PHP
 
Lesson 19 upload your page
Lesson 19 upload your pageLesson 19 upload your page
Lesson 19 upload your page
 
TYPO3 Flow and the Joy of Development (FOSDEM 2013)
TYPO3 Flow and the Joy of Development (FOSDEM 2013)TYPO3 Flow and the Joy of Development (FOSDEM 2013)
TYPO3 Flow and the Joy of Development (FOSDEM 2013)
 

Ähnlich wie 20090629 Using phpDocumentor

Documentation Insight技术架构与开发历程
Documentation Insight技术架构与开发历程Documentation Insight技术架构与开发历程
Documentation Insight技术架构与开发历程
jeffz
 
DocBlox: your source matters @ #pfc11
DocBlox: your source matters @ #pfc11DocBlox: your source matters @ #pfc11
DocBlox: your source matters @ #pfc11
Mike van Riel
 

Ähnlich wie 20090629 Using phpDocumentor (20)

Inside DocBlox
Inside DocBloxInside DocBlox
Inside DocBlox
 
The Beauty and the Beast
The Beauty and the BeastThe Beauty and the Beast
The Beauty and the Beast
 
The Beauty And The Beast Php N W09
The Beauty And The Beast Php N W09The Beauty And The Beast Php N W09
The Beauty And The Beast Php N W09
 
Ant vs Phing
Ant vs PhingAnt vs Phing
Ant vs Phing
 
HTML files in python.pptx
HTML files in python.pptxHTML files in python.pptx
HTML files in python.pptx
 
Documentation Insight技术架构与开发历程
Documentation Insight技术架构与开发历程Documentation Insight技术架构与开发历程
Documentation Insight技术架构与开发历程
 
Living With Legacy Code
Living With Legacy CodeLiving With Legacy Code
Living With Legacy Code
 
PHP Development Tools
PHP  Development ToolsPHP  Development Tools
PHP Development Tools
 
Fluent Development with FLOW3 1.0
Fluent Development with FLOW3 1.0Fluent Development with FLOW3 1.0
Fluent Development with FLOW3 1.0
 
IPCSE12: Getting into FLOW3
IPCSE12: Getting into FLOW3IPCSE12: Getting into FLOW3
IPCSE12: Getting into FLOW3
 
Php Documentor The Beauty And The Beast
Php Documentor The Beauty And The BeastPhp Documentor The Beauty And The Beast
Php Documentor The Beauty And The Beast
 
Development Workflow Tools for Open-Source PHP Libraries
Development Workflow Tools for Open-Source PHP LibrariesDevelopment Workflow Tools for Open-Source PHP Libraries
Development Workflow Tools for Open-Source PHP Libraries
 
Getting Into FLOW3 (DPC12)
Getting Into FLOW3 (DPC12)Getting Into FLOW3 (DPC12)
Getting Into FLOW3 (DPC12)
 
Web scraping with php
Web scraping with phpWeb scraping with php
Web scraping with php
 
Don’t turn your logs into cuneiform
Don’t turn your logs into cuneiformDon’t turn your logs into cuneiform
Don’t turn your logs into cuneiform
 
Modern PHP
Modern PHPModern PHP
Modern PHP
 
2019 11-bgphp
2019 11-bgphp2019 11-bgphp
2019 11-bgphp
 
DocBlox: your source matters @ #pfc11
DocBlox: your source matters @ #pfc11DocBlox: your source matters @ #pfc11
DocBlox: your source matters @ #pfc11
 
PHP language presentation
PHP language presentationPHP language presentation
PHP language presentation
 
Php documentor
Php documentorPhp documentor
Php documentor
 

Kürzlich hochgeladen

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Kürzlich hochgeladen (20)

TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

20090629 Using phpDocumentor