Download the PHP package gears/doc without Composer

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

The Doc Gear


Build Status Latest Stable Version Total Downloads License

API Documentation Generator using Markdown

Think Natural Docs but using 100% markdown.

This project is designed to document any language that supports the doc block comments syntax. This is what a doc block looks like:

How to Install


Installation via composer is easy:

composer require gears/doc:* --dev

Or you may wish to install the command globally on your system:

composer global require gears/doc:*

Running the Command gearsdoc


Once installed you just need to run the command like so:

/location/to/gearsdoc \
    --input="/the/path/to/your/source/code" \
    --output="/the/path/to/where/you/want/the/generated/docs/to/go"

There are many more options, either just use the option while at the terminal. Or have a look at: Method: configure

Writing Doc Blocks for gearsdoc


At a basic level to write a doc block that gearsdoc can parse and understand all you need to do is use the Markdown syntax, inside the doc block.

Gotchas


Make sure your doc blocks are spaced correctly, for example the following is a bad doc block:

Where as this is one is correct:

Apart from that there are no other hard requirements.

However to make effective good looking documenation with gearsdoc there are some things you need know:

Titles:


The first element in a doc block is considered the title for that doc block. Obviously if the doc block does not contain a element then we don't set the title attribute.

Here is a doc block that has a title:

And here is what it looks like:

I AM THE DOC BLOCK TITLE

this is just normal text

Contexts:


A context is simply a CSS class that we apply to each bootstrap panel that gets generated. The context is determined by the title thus if there is no title there is no context.

Out of the box gearsdoc will set some contexts for you. If you wish to add your own contexts see: Property: blockContexts.

Here is a doc block with the Class context:

And the resulting bootstrap panel:

Class: Baz

Signatures:


The very next line after a doc block is what we call the signature. It is usally the code that defines a class, function, method or property. But it can be anything at all. If the line is blank then that doc block will not have a sigature associated with it.

Here is a doc block with signature:

And here is what it looks like:

I AM THE DOC BLOCK TITLE

$foo = 'bar';

this is just normal text

Internal Links:


I am really very happy with this feature. Being able to link to various parts of code in your doc blocks is invaluable. For example being able to link to the exact line of code that consumes a class property... priceless :)

There are basically 3 types of internal links:

Lets have some examples:

The pound () denotes the file that we will find the reference in. If the reference is in the same file as the link then just leave the pound as is.

NOTE: There are a few working example in this page, see if you can find them.


Developed by Brad Jones - [email protected]


All versions of doc with dependencies

PHP Build Version
Package Version
Requires gears/di Version *
gears/string Version *
gears/arrays Version *
gears/view Version *
erusev/parsedown Version 1.*
symfony/console Version 2.*
symfony/finder Version 2.*
symfony/filesystem Version 2.*
tedivm/jshrink Version *
natxet/cssmin Version *
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 gears/doc contains the following files

Loading the files please wait ....