PHP Documentor 3
JSDoc
PHP Documentor 3 | JSDoc | |
---|---|---|
11 | 67 | |
4,034 | 14,742 | |
0.4% | 0.4% | |
9.0 | 9.3 | |
8 days ago | 9 days ago | |
PHP | JavaScript | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PHP Documentor 3
-
PHPDoc, PSR-5 and commenting inside the code
Also note that the tools ecosystem (IDEs and static analyzers such as PHPStan and Psalm) generally support more detailed types than you'll find in the RFC or the "official" PHPDocumentor project documentation, and they're continually evolving.
-
HOW TO USE RESTFUL RESOURCE CONTROLLERS IN LARAVEL
When running this command in your console, Artisan will create a new Controller in the app/Http/Controllers folder with some predefined methods, all these methods are related to API resources, all methods generated by the command have comments in the PHP DOCS standard (See More), with a brief description of each one's functionality.
-
Please, comment your code...
PHPDoc
-
I've noticed this syntax around - is there any "official" place where it comes from?
The original implementation, if I'm not wrong, was created by phpDocumentor, then it merged its codebase with a competing tool and now many programs contribute with their own annotations and formats.
-
Test your docblock code examples.
Another future project would be to see if it could be integrated in https://www.phpdoc.org/
-
What is the @ inside comments?
These are PHPDoc annotations. In addition to their original purpose of documenting code for humans, they're used by a range of other tools and IDEs to aid with things like type detection and other code enrichment.
-
Where can I find more information about how to write this type of comment about the different params and parts of a function? Example included
I think the original tool that implemented those annotations was phpDocumentor (if it wasn't the first, it was certainly among the pioneers), inspired by Javadoc. The original purpose was to generate documentation but, as it got popular, IDEs followed suit and started using annotations to provide code intelligence features. As of today, it's also used by code quality tools to identify potential bugs.
- Coisas que ninguém te ensina a fazer mas que todo mundo espera que você saiba: escrever documentação
-
Code documentation example for PHP projects
And the github repo: - github.com/phpDocumentor/phpDocumentor/
- Best documentation generator?
JSDoc
-
Eloquent JavaScript 4th edition (2024)
I wholeheartedly agree. At most, I introduce JSDoc[1] to newer developers as standardising how parameters and whatnot are commented at least gets you better documentation and _some_ safety without adding any TS knowledge overhead.
[1] https://jsdoc.app/
-
Learn how to document JavaScript/TypeScript code using JSDoc & Typedoc
This is where JSDoc comes to save the day.
-
Add typing to your Javascript code (without Typescript, kinda) ✍🏼
The best way to do this, of course, is with JSDoc. But something I always found awkward about jsdoc is defining the object types in the same file. So, after a lot of reading, I found a way to combine JSDoc with declaration type files from Typescript. Let me give you an example:
-
What is JSDoc and why you may not need typescript for your next project?
There is a lot of specific symbols presented on the JSDOC specification that can be found here: https://jsdoc.app
-
TypeScript Might Not Be Your God: Case Study of Migration from TS to JSDoc
JSDoc is a specification for the comment format in JavaScript. This specification allows developers to describe the structure of their code, data types, function parameters, and much more using special comments. These comments can then be transformed into documentation using appropriate tools.
-
Adding a search feature to my app
Working with new features, frameworks, and tools, the experience of reading documentation is a critical part of it. I have been lucky to work with projects that feature really easy to read documentation such as USWDS and Bun, but I've also had the misfortune to work with pretty terrible documentation like JSDoc. The JSDoc documentation lacks a search field which makes searching for specific items an ordeal and also does not cover many hidden use cases. It provides less than the bare minimum for what it needs to do - a lot of the time I am forced to rely on external user documentation elsewhere to use JSDoc effectively. That was why I was drawn to the search field in particular in Docusaurus.
-
JavaScript First, Then TypeScript
The Svelte team followed suit but motivated by the maintainer's developer experience as they migrated the project away from TypeScript in favor of plain JSDoc comments for type annotations instead.
-
No comments. Now what?
Even more relevant, tools like Javadoc, JSDoc, Doxygen, etc. read comments in a specific format to generate documentation. These comments do not affect readability. On the contrary, Javadocs are great for explaining how to use these entities. Combined with tools like my dear Doctest, we even get guarantees of accuracy and correctness!
-
The Complete 2023 Guide to Learning TypeScript - From Beginner to Advanced
Document types with JSDoc annotations
-
My opinionated JavaScript package template repository - zero config, start immediately
📚 JSDoc for documentation and jsdoc-to-markdown to create docs as markdown files
What are some alternatives?
PunBB - PunBB forum
ESDoc - ESDoc - Good Documentation for JavaScript
phpDox - Documentation generator for PHP Code using standard technology (SRC, DOCBLOCK, XML and XSLT)
documentation.js - :book: documentation for modern JavaScript
FluxBB - FluxBB is a fast, light, user-friendly forum application for your website.
Docusaurus - Easy to maintain open source documentation websites.
APIGen - PHP 7.1 ready Smart and Simple Documentation for your PHP project
apiDoc - RESTful web API Documentation Generator.
vscode - 320+ color themes for Visual Studio Code.
YUIDoc - YUI Javascript Documentation Tool
doctum - A php API documentation generator, fork of Sami
storybook - Storybook is a frontend workshop for building UI components and pages in isolation. Made for UI development, testing, and documentation.