All Projects → phpDocumentor → Phpdocumentor

phpDocumentor / Phpdocumentor

Licence: mit
Documentation Generator for PHP

Programming Languages

PHP
23972 projects - #3 most used programming language
Twig
543 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects
Makefile
30231 projects

Projects that are alternatives of or similar to Phpdocumentor

wp-documentor
Documentation Generator for WordPress.
Stars: ✭ 28 (-99.16%)
Mutual labels:  phpdocumentor, docblock, docblocks
Kroki
Creates diagrams from textual descriptions!
Stars: ✭ 774 (-76.83%)
Mutual labels:  hacktoberfest, graphviz
Asciidoctor Kroki
Asciidoctor.js extension to convert diagrams to images using Kroki!
Stars: ✭ 55 (-98.35%)
Mutual labels:  hacktoberfest, graphviz
Pydot
Python interface to Graphviz's Dot language
Stars: ✭ 518 (-84.5%)
Mutual labels:  hacktoberfest, graphviz
Reflectiondocblock
No description or website provided.
Stars: ✭ 8,910 (+166.69%)
Mutual labels:  hacktoberfest, docblocks
Diagrams
🎨 Diagram as Code for prototyping cloud system architectures
Stars: ✭ 15,756 (+371.6%)
Mutual labels:  hacktoberfest, graphviz
phpdoc-vuepress
🎨 Template for generating your PHP API documentation in a pretty VuePress format
Stars: ✭ 19 (-99.43%)
Mutual labels:  phpdocumentor, docblock
Spatie.be
The source code of spatie.be
Stars: ✭ 274 (-91.8%)
Mutual labels:  hacktoberfest
Stopstalk Deployment
Stop stalking and start StopStalking 😉
Stars: ✭ 276 (-91.74%)
Mutual labels:  hacktoberfest
Zmk
ZMK Firmware Repository
Stars: ✭ 269 (-91.95%)
Mutual labels:  hacktoberfest
Hackathon Dicas
Dicas de ferramentas e conteúdos para utilizar em um hackathon :)
Stars: ✭ 231 (-93.09%)
Mutual labels:  hacktoberfest
Front End Web Development Resources
This repository contains content which will be helpful in your journey as a front-end Web Developer
Stars: ✭ 3,452 (+3.32%)
Mutual labels:  hacktoberfest
Sqlserverdsc
This module contains DSC resources for deployment and configuration of Microsoft SQL Server.
Stars: ✭ 278 (-91.68%)
Mutual labels:  hacktoberfest
Twitter Cleanup
🛁 Clean-up inactive accounts and bots from your Twitter
Stars: ✭ 275 (-91.77%)
Mutual labels:  hacktoberfest
Repman
Repman - PHP Repository Manager: packagist proxy and host for private packages
Stars: ✭ 277 (-91.71%)
Mutual labels:  hacktoberfest
Verless
A simple and lightweight Static Site Generator.
Stars: ✭ 276 (-91.74%)
Mutual labels:  hacktoberfest
Clouddriver
read and write operations across cloud providers
Stars: ✭ 279 (-91.65%)
Mutual labels:  hacktoberfest
Hiddeneyereborn
HiddenEye with completely new codebase and better features set
Stars: ✭ 274 (-91.8%)
Mutual labels:  hacktoberfest
Neode
Neo4j OGM for Node.js
Stars: ✭ 276 (-91.74%)
Mutual labels:  hacktoberfest
Tiltedonline
Skyrim and Fallout 4 mod to play online!
Stars: ✭ 275 (-91.77%)
Mutual labels:  hacktoberfest

License: MIT Qa workflow Packagist Version Packagist Pre Release Version Downloads

phpDocumentor

What is phpDocumentor?

phpDocumentor is an application that is capable of analyzing your PHP source code and DocBlock comments to generate a complete set of API Documentation.

Inspired by phpDocumentor 1 and JavaDoc it continues to innovate and is up to date with the latest technologies and PHP language features.

phpDocumentor v3 (Stable)

v3 is the latest stable release.

Documentation

For more detailed information you can check our online documentation at https://docs.phpdoc.org/.

Features

phpDocumentor supports the following:

  • PHP 7.0+ compatible, full support for Namespaces, Closures and more are provided.
  • Docblock over types, docblocks can be more explicit about types not all formats are supported by native php.
  • Shows any tag, some tags add additional functionality to phpDocumentor (such as @link).
  • Low memory usage, peak memory usage for small projects is less than 20MB, medium projects 40MB and large frameworks 100MB.
  • Incremental parsing, if you kept the Structure file from a previous run, you get an additional performance boost of up to 80% on top of the mentioned processing speed increase above.
  • Easy template building, if you want to make a branding you only have to call 1 task and edit 3 files.
  • Two-step process, phpDocumentor first generates a cache with your application structure before creating the output. If you'd like you can use that to power your own tools or formatters!
  • Generics support, with more static analysis in php types have become more complex. phpDocumentor understand these types. And will render them as first class types.

Installation

PhpDocumentor requires PHP 7.2 or higher to run. However, code of earlier PHP versions can be analyzed.

All templates provided with phpDocumentor have support for Class diagrams based on the read code base. This will require the application Graphviz to be installed on the machine running phpDocumentor. Rendering the class diagrams using Graphviz is optional, and warnings about missing Graphviz can be ignored. However, your documentation will contain some dead links in this case. Class diagram will be created with option --setting=graphs.enabled=true.

There are 3 ways to install phpDocumentor:

  1. Using phive (recommended)
  2. Using the PHAR (manual install)
  3. Via Docker
  4. Via Composer

Using Phive

$ phive install --force-accept-unsigned phpDocumentor

For more information about phive have a look at their website. Now you have phpDocumentor installed, it can be executed like this:

php tools/phpDocumentor

Using the PHAR

  1. Download the phar file from https://github.com/phpDocumentor/phpDocumentor/releases
  2. You can execute the phar like this: php phpDocumentor.phar

Via Docker

  1. $ docker pull phpdoc/phpdoc
  2. $ docker run --rm -v $(pwd):/data phpdoc/phpdoc

Via Composer (not recommended)

But wait? What about composer?

Ah, you discovered our secret. There is a phpdocumentor composer package that you can use to install phpDocumentor.

However: phpDocumentor is a complex application, and its libraries are used in countless other libraries and applications (2 of our libraries have more than 150 million downloads each); and this means that the chances for a conflict between one of our dependencies and yours is high. And when I say high, it is really high.

So, because of the above: we do not endorse nor actively support installing phpDocumentor using Composer.

PEAR

Starting from phpDocumentor v3 we decided to drop PEAR support due to declining use.

How to use phpDocumentor?

The easiest way to run phpDocumentor is by running the following command:

$ phpdoc run -d <SOURCE_DIRECTORY> -t <TARGET_DIRECTORY>

This command will parse the source code provided using the -d argument and output it to the folder indicated by the -t argument.

phpDocumentor supports a whole range of options to configure the output of your documentation. You can execute the following command, or check our website, for a more detailed listing of available command-line options.

$ phpdoc run -h

Configuration file(s)

phpDocumentor also supports the use of configuration files (named phpdoc.xml or phpdoc.dist.xml by default). Please consult the documentation to see the format and supported options.

Nightly builds

PhpDocumentor doesn't have nightly releases. However, during each pipeline a phar artifact is built. If you want to test the bleeding edge version of phpDocumentor, have a look in the actions section of this repository. Each successful QA workflow has an Artifacts section at the bottom with the phar artifact built.

Contact

Reaching out to us is easy, and can be done with:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].