2017 © Pedro Peláez
 

symfony-bundle documentor-bundle

Symfony2 bundle to implement phpDocumentor into any project from which the documentation is accessible with a browser.

image

timhovius/documentor-bundle

Symfony2 bundle to implement phpDocumentor into any project from which the documentation is accessible with a browser.

  • Thursday, November 26, 2015
  • by timhovius
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

README

What is DocumentorBundle?

DocumentorBundle is a Symfony2 bundle that wraps phpDocumentor2 to generate your project's documentation., (*1)

Basic Usage

  1. Install and enable the bundle for your project's development environment
  2. Run app/console documentation:create to generate the documentation for files located in ./src
  3. Your project documentation is now available at web/bundles/documentor or http://yourproject.dev/app_dev.php/bundles/documentor/index.html

Features

DocumentorBundle boasts the following features:, (*2)

  • Generates documentation with a simple console command.
  • No need to enter source and target paths.
  • Configurable to make sure it only works in your development environment.

Requirements

DocumentorBundle requires the following:, (*3)

  • PHP 5.3.3 or higher

Installation

The suggested install method is via Composer, (*4)

  1. Add DocumentorBundle to your composer.json file:, (*5)

    {
        "require-dev": {
            "timhovius/phpdocumentor-bundle": "~1.0"
        }
    }
    
  2. Tell Composer to update this bundle:, (*6)

    php composer.phar update artur-gajewski/phpdocumentor-bundle
    
  3. Enable the bundle for your development environment:, (*7)

    // app/AppKernel.php
    
        public function registerBundles()
        {
            // Register normal bundles
    
            if (in_array($this->getEnvironment(), array('dev', 'test'))) {
                // ...
                $bundles[] = new Documentor\Bundle\DocumentorBundle\DocumentorBundle();
            }
        }
    

How to use DocumentorBundle?

Go to your project root and generate the documentation using the bundle's built-in DocumentorCommand:, (*8)

$ app/console documentation:create

This command will generate documentation for all files in the src/ directory., (*9)

After generating the documentation, the command executes app/console assets:install to copy the newly generated documentation to web/bundles/documentor, where you can access it from disk or via your project's website at http://yourproject.dev/app_dev.php/bundles/documentor/index.html, (*10)

The Versions

26/11 2015

dev-master

9999999-dev https://github.com/timhovius/DocumentorBundle

Symfony2 bundle to implement phpDocumentor into any project from which the documentation is accessible with a browser.

  Sources   Download

MIT

The Requires

 

by Tim Hovius

phpdocumentor

26/11 2015

v1.0

1.0.0.0 https://github.com/timhovius/DocumentorBundle

Symfony2 bundle to implement phpDocumentor into any project from which the documentation is accessible with a browser.

  Sources   Download

MIT

The Requires

 

by Tim Hovius

phpdocumentor