Download the PHP package dudo1985/wpdocgen without Composer

On this page you can find all versions of the php package dudo1985/wpdocgen. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wpdocgen

WP Doc Generator

WordPress Doc Generator is a tool to automatically extract data about the actions, filters and shortcodes of your WordPress theme or plugin.

Table of contents

Getting Started

Installation

Install it with composer

Command Line Usage

First parameter is the input directory, second is the output file, e.g.

vendor/bin/wp-doc-gen . hooks.md

This will parse all the files in the current directory (.) and write a file called hooks.md

Optional params

--shortcodes or -s

By default, WPDocGen search for hooks apply_filters and do_actions. However, if you use the --shortcodes or -s will search for add_shortcode function instead.

vendor/bin/wp-doc-gen . shortcodes.md -s


--exclude or -e

Exclude the specified folders, e.g.

vendor/bin/wp-doc-gen . hooks.md --exclude vendor node_modules

Another example, if you're launching the script from another dir:

vendor bin/wp-doc-gen.php ../my-plugin/ docs/hooks.md --exclude vendor node_modules --prefix yasr

There is no need to include the full paths of the excluded dirs, it is automatically ../my-plugin/vendor and ../my-plugin/node_modules


--prefix or -p

Only parse hooks or shortcodes starting with the specified prefixes.

vendor/bin/wp-doc-gen . hooks.md --exclude vendor node_modules --prefix prefix_1 prefix_2


--verbose or -v

More detailed error messages.


--version or -V

Print the version number

Real life Examples

Generated markdown files

Notes

To make the parser work fine, the comment must be a valid phpDocBlock, e.g.

will generate this code

do_action('yasr_add_tabs_on_tinypopupform')

Source: ../yet-another-stars-rating/admin/editor/YasrEditorHooks.php, line 219

Use this action to add tabs inside shortcode creator for tinymce

or, another example with tags

will generate this code with table

do_action('yasr_add_content_on_tinypopupform')

Source: ../yet-another-stars-rating/admin/editor/YasrEditorHooks.php, line 235

Use this action to add content inside shortcode creator

But, if you use the type after the argument, e.g.

this will insert the type (int and string in this example) inside the "Description" column:

Alternatives

Here is a list of alternatives that I found. However, none of these satisfied my needs

Links


All versions of wpdocgen with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dudo1985/wpdocgen contains the following files

Loading the files please wait ....