SlideShare a Scribd company logo
@phpdoc by Aram Baghdasaryan
@phpdoc aka
Doxygen standard
What @phpdoc is?
@phpdoc by Aram Baghdasaryan
PHPDoc is an adaptation of Javadoc for the
PHP programming language
@phpdoc by Aram Baghdasaryan
· documentation
· relationships
· diagrams
· autocomplete
What it gives to us?
@phpdoc by Aram Baghdasaryan
We can apply @phpdoc
@phpdoc by Aram Baghdasaryan
· in context of a page
We can apply @phpdoc
@phpdoc by Aram Baghdasaryan
· in context of a page
· in context of a class
We can apply @phpdoc
@phpdoc by Aram Baghdasaryan
· in context of a page
· in context of a class
· in context of a method
We can apply @phpdoc
@phpdoc by Aram Baghdasaryan
· in context of a page
· in context of a class
· in context of a method
· in context of a properties & variables
We can apply @phpdoc
@phpdoc by Aram Baghdasaryan
short style
/** … */
“long” style
/**
* …
*/
DocBlock syntax
@phpdoc by Aram Baghdasaryan
/**
* This is a DocBlock comment
*/
function() {
...
}
First impression
@phpdoc by Aram Baghdasaryan
/**
* @method type MethodName($param)
* @property type propertyName
* ...
*/
class specific @phpdoc
@phpdoc by Aram Baghdasaryan
/**
* @method int exp($num)
*/
class Number { ... }
$pass = new Number();
$pass->exp(5);
@phpdoc method
@phpdoc by Aram Baghdasaryan
/**
* @param type $param Description
* @return type
* @throws Exception
* ...
*/
method specific @phpdoc
@phpdoc by Aram Baghdasaryan
/**
* @param DomainUser $param
*/
function ident($param) {
...
}
@phpdoc param
@phpdoc by Aram Baghdasaryan
/**
* @param User|bool $param
*/
function ident($param) {
if ($param) {
$param->getName();
}
}
@phpdoc param
@phpdoc by Aram Baghdasaryan
/**
* @param User[]|ArrayObject $param
*/
function ident($param) {
if ($param->count()) {
foreach ($param as $item) { ... }
}
}
@phpdoc param
@phpdoc by Aram Baghdasaryan
/**
* @return User[]|ArrayObject $param
*/
function getUserDomain() {
...
}
@phpdoc return
@phpdoc by Aram Baghdasaryan
/**
* @throws Exception
* @throws CustomException
*/
function interrupt() {
throw new CustomException(‘...’);
}
@phpdoc throws
@phpdoc by Aram Baghdasaryan
/**
* @var type $param Description
* @name $var1
* @global type $var2
* ...
*/
variable specific @phpdoc
@phpdoc by Aram Baghdasaryan
/**
* Important Method ...
*
* Usage:
* <code>
* $x = MyMethod($param);
* $x->init();
* </code>
*/
HTML in descriptions
@phpdoc by Aram Baghdasaryan
Thank You!

More Related Content

PPTX
Java script
PPSX
DIWE - Coding HTML for Basic Web Designing
PPT
Java script final presentation
PDF
Basic JavaScript Tutorial
PPTX
Javascript
PPTX
Java script
PPT
JavaScript Workshop
PPTX
Introduction to JavaScript Programming
Java script
DIWE - Coding HTML for Basic Web Designing
Java script final presentation
Basic JavaScript Tutorial
Javascript
Java script
JavaScript Workshop
Introduction to JavaScript Programming

What's hot (20)

PDF
8 introduction to_java_script
PPTX
Complete Notes on Angular 2 and TypeScript
PDF
Javascript part1
PPTX
Introduction to JavaScript Basics.
PPT
Intro To Hibernate
PPTX
Dynamic Language Performance
PDF
Javascript basics
DOCX
Java script basics
PPTX
Java Script An Introduction By HWA
PPTX
An Introduction to JavaScript
PPTX
Java script
PPT
Introduction to Javascript
PPTX
Java script
PPTX
Placement and variable 03 (js)
PPT
Javascript
PPSX
Javascript variables and datatypes
PPTX
Javascript functions
PPTX
Javascript
8 introduction to_java_script
Complete Notes on Angular 2 and TypeScript
Javascript part1
Introduction to JavaScript Basics.
Intro To Hibernate
Dynamic Language Performance
Javascript basics
Java script basics
Java Script An Introduction By HWA
An Introduction to JavaScript
Java script
Introduction to Javascript
Java script
Placement and variable 03 (js)
Javascript
Javascript variables and datatypes
Javascript functions
Javascript
Ad

Viewers also liked (14)

PDF
My Portfolio
PPTX
Cheap Vacation Trips For Summer
PPTX
Welding equipment | #Weldingequipment
PPTX
Un año papá...Un día te veré...
PPTX
N.Gencevi
PPTX
Article Marketing For SEO - Article Distribution
PPTX
Gaining Strategic Insight For Higher Profits
PPTX
Accoled dm 2014
PDF
ДИАНЕТИКА 55! Руководство по эффективному общению
PPTX
PDF
Настольная книга для Преклиров
PDF
allBItech profile
PPTX
Absolutevaluelab
My Portfolio
Cheap Vacation Trips For Summer
Welding equipment | #Weldingequipment
Un año papá...Un día te veré...
N.Gencevi
Article Marketing For SEO - Article Distribution
Gaining Strategic Insight For Higher Profits
Accoled dm 2014
ДИАНЕТИКА 55! Руководство по эффективному общению
Настольная книга для Преклиров
allBItech profile
Absolutevaluelab
Ad

Similar to PHPDoc aka Doxygen standard (20)

KEY
20090629 Using phpDocumentor
PPT
Php Docs
ODP
What's new, what's hot in PHP 5.3
PDF
Preparing for the next PHP version (5.6)
PDF
OOP in PHP
PPTX
c91632a4-2e92-4edf-b750-358da15ed1b1.pptx
PDF
The Beauty and the Beast
PPT
PPTX
Constructor and encapsulation in php
PDF
Introduction to PHP
PPTX
PDF
Demystifying Object-Oriented Programming - PHP UK Conference 2017
PDF
Object Oriented Programming in PHP
PPT
Class 7 - PHP Object Oriented Programming
PDF
Demystifying Object-Oriented Programming - Lone Star PHP
PDF
20 PHP Static Analysis and Documentation Generators #burningkeyboards
PDF
Demystifying Object-Oriented Programming - PHP[tek] 2017
PPTX
Object oreinted php | OOPs
PDF
The Beauty And The Beast Php N W09
20090629 Using phpDocumentor
Php Docs
What's new, what's hot in PHP 5.3
Preparing for the next PHP version (5.6)
OOP in PHP
c91632a4-2e92-4edf-b750-358da15ed1b1.pptx
The Beauty and the Beast
Constructor and encapsulation in php
Introduction to PHP
Demystifying Object-Oriented Programming - PHP UK Conference 2017
Object Oriented Programming in PHP
Class 7 - PHP Object Oriented Programming
Demystifying Object-Oriented Programming - Lone Star PHP
20 PHP Static Analysis and Documentation Generators #burningkeyboards
Demystifying Object-Oriented Programming - PHP[tek] 2017
Object oreinted php | OOPs
The Beauty And The Beast Php N W09

Recently uploaded (20)

PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Encapsulation theory and applications.pdf
PDF
KodekX | Application Modernization Development
PDF
Machine learning based COVID-19 study performance prediction
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Review of recent advances in non-invasive hemoglobin estimation
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation_ Review paper, used for researhc scholars
Building Integrated photovoltaic BIPV_UPV.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
NewMind AI Weekly Chronicles - August'25 Week I
Digital-Transformation-Roadmap-for-Companies.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Unlocking AI with Model Context Protocol (MCP)
Encapsulation theory and applications.pdf
KodekX | Application Modernization Development
Machine learning based COVID-19 study performance prediction
sap open course for s4hana steps from ECC to s4
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Diabetes mellitus diagnosis method based random forest with bat algorithm
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows

PHPDoc aka Doxygen standard

  • 1. @phpdoc by Aram Baghdasaryan @phpdoc aka Doxygen standard
  • 2. What @phpdoc is? @phpdoc by Aram Baghdasaryan PHPDoc is an adaptation of Javadoc for the PHP programming language
  • 3. @phpdoc by Aram Baghdasaryan · documentation · relationships · diagrams · autocomplete What it gives to us?
  • 4. @phpdoc by Aram Baghdasaryan We can apply @phpdoc
  • 5. @phpdoc by Aram Baghdasaryan · in context of a page We can apply @phpdoc
  • 6. @phpdoc by Aram Baghdasaryan · in context of a page · in context of a class We can apply @phpdoc
  • 7. @phpdoc by Aram Baghdasaryan · in context of a page · in context of a class · in context of a method We can apply @phpdoc
  • 8. @phpdoc by Aram Baghdasaryan · in context of a page · in context of a class · in context of a method · in context of a properties & variables We can apply @phpdoc
  • 9. @phpdoc by Aram Baghdasaryan short style /** … */ “long” style /** * … */ DocBlock syntax
  • 10. @phpdoc by Aram Baghdasaryan /** * This is a DocBlock comment */ function() { ... } First impression
  • 11. @phpdoc by Aram Baghdasaryan /** * @method type MethodName($param) * @property type propertyName * ... */ class specific @phpdoc
  • 12. @phpdoc by Aram Baghdasaryan /** * @method int exp($num) */ class Number { ... } $pass = new Number(); $pass->exp(5); @phpdoc method
  • 13. @phpdoc by Aram Baghdasaryan /** * @param type $param Description * @return type * @throws Exception * ... */ method specific @phpdoc
  • 14. @phpdoc by Aram Baghdasaryan /** * @param DomainUser $param */ function ident($param) { ... } @phpdoc param
  • 15. @phpdoc by Aram Baghdasaryan /** * @param User|bool $param */ function ident($param) { if ($param) { $param->getName(); } } @phpdoc param
  • 16. @phpdoc by Aram Baghdasaryan /** * @param User[]|ArrayObject $param */ function ident($param) { if ($param->count()) { foreach ($param as $item) { ... } } } @phpdoc param
  • 17. @phpdoc by Aram Baghdasaryan /** * @return User[]|ArrayObject $param */ function getUserDomain() { ... } @phpdoc return
  • 18. @phpdoc by Aram Baghdasaryan /** * @throws Exception * @throws CustomException */ function interrupt() { throw new CustomException(‘...’); } @phpdoc throws
  • 19. @phpdoc by Aram Baghdasaryan /** * @var type $param Description * @name $var1 * @global type $var2 * ... */ variable specific @phpdoc
  • 20. @phpdoc by Aram Baghdasaryan /** * Important Method ... * * Usage: * <code> * $x = MyMethod($param); * $x->init(); * </code> */ HTML in descriptions
  • 21. @phpdoc by Aram Baghdasaryan Thank You!