Download the PHP package diversen/php-markdown-docs without Composer

On this page you can find all versions of the php package diversen/php-markdown-docs. 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 php-markdown-docs

About

Simple and easy to use documentation system for PHP classes, which generates Markdown output. It works easy with e.g. github.com, as you will be able to include documentation for your classes in README.md files - like the one you probably are looking at now. Best suited for small code libs with maybe a couple of classes.

Install

composer require diversen/php-markdown-docs

Usage (lib)

    use diversen\markdownDocs;

    $md = new markdownDocs();
    // Class to be generate documentaiton for
    $class = 'diversen\markdownDocs';
    $md->classToMD($class);

    echo $md->getOutput();

Usage (binary)

When the lib is installed you have access to the markdown-docs binary, and you can use in a way similar to this:

./vendor/bin/markdown-docs --public 'diversen\markdownDocs'

This will just output the markdown documentation to stdout, so you will need to redirect it, e.g. to a file.

If you want both private, public, and protected methods in the documentation, you can remove the --public flag. This flag means that only public properties and methods will be included in the output.

You can run it on any class that is autoloaded with composer autoload.php

Class: diversen\markdownDocs


Simple class that generates markdown from php source files (using phpdocs format) The real work is done through Nette\Reflection. See: https://github.com/nette/reflection

Properties


Methods


public classToMD
Generates markdown output for a specified class

@param string $class e.g. `PDO` or a user class like `diversen\markdownDocs`

@return void the method adds to $output
public getOutput
Returns the markdown phpdocs

@return string $output the final markdown output

All versions of php-markdown-docs with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
nette/reflection Version ^2.3
diversen/parse-argv Version ^1.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 diversen/php-markdown-docs contains the following files

Loading the files please wait ....