nelson6e65 / phpdoc-vuepress
Template for generating your PHP API documentation in a pretty VuePress format.
Fund package maintenance!
Patreon
paypal.me/n6e65
Installs: 4 065
Dependents: 2
Suggesters: 0
Security: 0
Stars: 21
Watchers: 4
Forks: 2
Open Issues: 22
Language:Twig
Requires (Dev)
- jms/serializer: 1.7.*
- phpdocumentor/phpdocumentor: ^2.9
- v1.x-dev
- dev-master / 1.0.x-dev
- v1.0.1
- v1.0.0
- v1.0.0-beta.4
- v1.0.0-beta.3
- v1.0.0-beta.2
- v1.0.0-beta
- dev-dependabot/npm_and_yarn/minimist-1.2.7
- dev-dependabot/npm_and_yarn/prettier-plugin-packagejson-2.4.3
- dev-dependabot/npm_and_yarn/prettier/plugin-xml-2.2.0
- dev-dependabot/npm_and_yarn/minimatch-3.1.2
- dev-dependabot/npm_and_yarn/http-cache-semantics-4.1.1
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/qs-6.5.3
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/terser-4.8.1
- dev-dependabot/npm_and_yarn/ws-6.2.2
- dev-dependabot/npm_and_yarn/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/color-string-1.9.0
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.8
This package is auto-updated.
Last update: 2024-12-05 13:43:04 UTC
README
PHPDoc-VuePress
Template for generating your PHP API documentation in a pretty VuePress format.
This package provides a phpDocumentor 2 template to generate the API documentation of your code to be integrated in a nice looking VuePress project.
WIP: 🚧🏗 Compatibility with phpDocumentor 3 in progress.
Features
This template will generate six VuePress *.md
files with the DocBlock documentation in your target directory:
README.md
: Entry point of your API Documentation. Contains, at the moment, an introduction and references to blocks used in the site.classes.md
: Contains all classes, sorted by namespace.interfaces.md
: Contains all interfaces, sorted by namespace.traits.md
: Contains all traits, sorted by namespace.constants.md
: Contains all global constants, sorted by namespace.functions.md
: Contains all global functions, sorted by namespace.
Demo
Check a demo of documentation generated with this template in https://phpdoc-vuepress.netlify.app/demo
Explore sources of nelson6e65/phpdoc-vuepress to use configuration files as guide.
A real project API generated using this template: nelson6e65/php_nml.
Requirements
- PHP >= 5.6 < 8.0
- Node.js >= 8 < 18
- phpDocumentor 2.
- Yarn (or npm)
- VuePress.
This template is designed for phpDocumentor 2 and VuePress 1. Read more about dependencies in the Documentation.
Note: phpDocumentor 2 is able to generate documentation of code written on maybe any version of PHP < 8, but should be run on PHP 7.2. You can configure a CI like Travis CI, Netlify of Github Actions to generate the documentation on PHP 7.2 for your code if not using it on your local environment. Compatibility with phpDocumentor 3 is in progress 🚧 to support new features it offers.
Installation
Install nelson6e65/phpdoc-vuepress
with composer:
composer require --dev nelson6e65/phpdoc-vuepress
Note for pre-releases: You may need to set the composer option minimum-stability to 'dev' or 'beta' in order to be able to install pre-releases.
Usage
Run phpDocumentor and set template as vendor/nelson6e65/phpdoc-vuepress/data/templates/vuepress
:
phpdoc -d="src/" -t="docs/api/" --template="vendor/nelson6e65/phpdoc-vuepress/data/templates/vuepress"
More information about the available arguments can be found at running phpDocumentor.
Configuration
See the Configuration section in the documentation for setup examples.
Further reading
Check the documentation for more information https://nelson6e65.github.io/phpdoc-vuepress/.
Contributing
Check out the CONTRIBUTING.md file for details about contributing.
License
Copyright (c) 2018-2023 Nelson Martell
Read the LICENSE
file for details.
Note: This template is based on Markdown template created by @cvuorinen: cvuorinen/phpdoc-markdown-public.