SlideShare une entreprise Scribd logo
1  sur  21
Télécharger pour lire hors ligne
@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!

Contenu connexe

Tendances

Javascript part1
Javascript part1Javascript part1
Javascript part1
Raghu nath
 
An Introduction to JavaScript
An Introduction to JavaScriptAn Introduction to JavaScript
An Introduction to JavaScript
tonyh1
 
Javascript variables and datatypes
Javascript variables and datatypesJavascript variables and datatypes
Javascript variables and datatypes
Varun C M
 

Tendances (20)

8 introduction to_java_script
8 introduction to_java_script8 introduction to_java_script
8 introduction to_java_script
 
Complete Notes on Angular 2 and TypeScript
Complete Notes on Angular 2 and TypeScriptComplete Notes on Angular 2 and TypeScript
Complete Notes on Angular 2 and TypeScript
 
Javascript part1
Javascript part1Javascript part1
Javascript part1
 
Introduction to JavaScript Basics.
Introduction to JavaScript Basics.Introduction to JavaScript Basics.
Introduction to JavaScript Basics.
 
Intro To Hibernate
Intro To HibernateIntro To Hibernate
Intro To Hibernate
 
Dynamic Language Performance
Dynamic Language PerformanceDynamic Language Performance
Dynamic Language Performance
 
Javascript basics
Javascript basicsJavascript basics
Javascript basics
 
Java script basics
Java script basicsJava script basics
Java script basics
 
Java Script An Introduction By HWA
Java Script An Introduction By HWAJava Script An Introduction By HWA
Java Script An Introduction By HWA
 
XML
XMLXML
XML
 
An Introduction to JavaScript
An Introduction to JavaScriptAn Introduction to JavaScript
An Introduction to JavaScript
 
Java script
Java scriptJava script
Java script
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
 
Dtd
DtdDtd
Dtd
 
Java script
Java scriptJava script
Java script
 
Placement and variable 03 (js)
Placement and variable 03 (js)Placement and variable 03 (js)
Placement and variable 03 (js)
 
Javascript
JavascriptJavascript
Javascript
 
Javascript variables and datatypes
Javascript variables and datatypesJavascript variables and datatypes
Javascript variables and datatypes
 
Javascript functions
Javascript functionsJavascript functions
Javascript functions
 
Javascript
JavascriptJavascript
Javascript
 

En vedette

Un año papá...Un día te veré...
Un año papá...Un día te veré...Un año papá...Un día te veré...
Un año papá...Un día te veré...
Monica Bonino
 
ДИАНЕТИКА 55! Руководство по эффективному общению
ДИАНЕТИКА 55! Руководство по эффективному общениюДИАНЕТИКА 55! Руководство по эффективному общению
ДИАНЕТИКА 55! Руководство по эффективному общению
web-processing
 

En vedette (14)

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

Similaire à PHPDoc aka Doxygen standard

Php Reusing Code And Writing Functions
Php Reusing Code And Writing FunctionsPhp Reusing Code And Writing Functions
Php Reusing Code And Writing Functions
mussawir20
 
DDD on example of Symfony (Webcamp Odessa 2014)
DDD on example of Symfony (Webcamp Odessa 2014)DDD on example of Symfony (Webcamp Odessa 2014)
DDD on example of Symfony (Webcamp Odessa 2014)
Oleg Zinchenko
 
DocBlox: your source matters @ #pfc11
DocBlox: your source matters @ #pfc11DocBlox: your source matters @ #pfc11
DocBlox: your source matters @ #pfc11
Mike van Riel
 

Similaire à PHPDoc aka Doxygen standard (20)

Kicking off with Zend Expressive and Doctrine ORM (Sunshine PHP 2017)
Kicking off with Zend Expressive and Doctrine ORM (Sunshine PHP 2017)Kicking off with Zend Expressive and Doctrine ORM (Sunshine PHP 2017)
Kicking off with Zend Expressive and Doctrine ORM (Sunshine PHP 2017)
 
Kicking off with Zend Expressive and Doctrine ORM (PHP UK 2017)
Kicking off with Zend Expressive and Doctrine ORM (PHP UK 2017)Kicking off with Zend Expressive and Doctrine ORM (PHP UK 2017)
Kicking off with Zend Expressive and Doctrine ORM (PHP UK 2017)
 
Kicking off with Zend Expressive and Doctrine ORM (PHP Srbija 2017)
Kicking off with Zend Expressive and Doctrine ORM (PHP Srbija 2017)Kicking off with Zend Expressive and Doctrine ORM (PHP Srbija 2017)
Kicking off with Zend Expressive and Doctrine ORM (PHP Srbija 2017)
 
Kicking off with Zend Expressive and Doctrine ORM (PHP South Africa 2018)
Kicking off with Zend Expressive and Doctrine ORM (PHP South Africa 2018)Kicking off with Zend Expressive and Doctrine ORM (PHP South Africa 2018)
Kicking off with Zend Expressive and Doctrine ORM (PHP South Africa 2018)
 
Extending Zend Framework
Extending Zend FrameworkExtending Zend Framework
Extending Zend Framework
 
latest slide
latest slidelatest slide
latest slide
 
testing add
testing addtesting add
testing add
 
Crafting Quality PHP Applications (PHP Joburg Oct 2019)
Crafting Quality PHP Applications (PHP Joburg Oct 2019)Crafting Quality PHP Applications (PHP Joburg Oct 2019)
Crafting Quality PHP Applications (PHP Joburg Oct 2019)
 
Php Reusing Code And Writing Functions
Php Reusing Code And Writing FunctionsPhp Reusing Code And Writing Functions
Php Reusing Code And Writing Functions
 
DDD on example of Symfony (Webcamp Odessa 2014)
DDD on example of Symfony (Webcamp Odessa 2014)DDD on example of Symfony (Webcamp Odessa 2014)
DDD on example of Symfony (Webcamp Odessa 2014)
 
Pxb For Yapc2008
Pxb For Yapc2008Pxb For Yapc2008
Pxb For Yapc2008
 
DocBlox: your source matters @ #pfc11
DocBlox: your source matters @ #pfc11DocBlox: your source matters @ #pfc11
DocBlox: your source matters @ #pfc11
 
Rack Middleware
Rack MiddlewareRack Middleware
Rack Middleware
 
Applicative style programming
Applicative style programmingApplicative style programming
Applicative style programming
 
Rest in practice con Symfony2
Rest in practice con Symfony2Rest in practice con Symfony2
Rest in practice con Symfony2
 
PHPDoc
PHPDocPHPDoc
PHPDoc
 
EmberConf 2021 - Crossfile Codemodding with Joshua Lawrence
EmberConf 2021 - Crossfile Codemodding with Joshua LawrenceEmberConf 2021 - Crossfile Codemodding with Joshua Lawrence
EmberConf 2021 - Crossfile Codemodding with Joshua Lawrence
 
Kicking off with Zend Expressive and Doctrine ORM (PHP MiNDS March 2018)
Kicking off with Zend Expressive and Doctrine ORM (PHP MiNDS March 2018)Kicking off with Zend Expressive and Doctrine ORM (PHP MiNDS March 2018)
Kicking off with Zend Expressive and Doctrine ORM (PHP MiNDS March 2018)
 
Perl Presentation
Perl PresentationPerl Presentation
Perl Presentation
 
Kicking off with Zend Expressive and Doctrine ORM (ZendCon 2016)
Kicking off with Zend Expressive and Doctrine ORM (ZendCon 2016)Kicking off with Zend Expressive and Doctrine ORM (ZendCon 2016)
Kicking off with Zend Expressive and Doctrine ORM (ZendCon 2016)
 

Dernier

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Dernier (20)

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
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
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...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
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
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

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!