2017 © Pedro Peláez
 

symfony-bundle easy-doc-bundle

Symfony application documentation generator

image

easycorp/easy-doc-bundle

Symfony application documentation generator

  • Wednesday, February 1, 2017
  • by javier.eguiluz
  • Repository
  • 18 Watchers
  • 88 Stars
  • 532 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 13 Open issues
  • 10 Versions
  • 11 % Grown

The README.md

EasyDoc

This bundle generates the formal documentation for Symfony applications. This documentation is a HTML document that contains detailed information about every application element (routes, services, events, configuration, etc.), (*1)

When would this bundle be useful?, (*2)

  • As a reference to look for any application element details.
  • As a document to get an overall idea of the application when adding new developers to the project.
  • As a deliverable to the client who paid for the application development.
  • As a searchable archive of legacy applications.

This is how it looks:, (*3)

EasyDoc in action, (*4)

Installation

Step 1: Download the Bundle

$ composer require --dev easycorp/easy-doc-bundle

Step 2: Enable the Bundle

// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        // ...

        if (in_array($this->getEnvironment(), ['dev', 'test'])) {
            // ...

            if ('dev' === $this->getEnvironment()) {
                // ...
                $bundles[] = new EasyCorp\Bundle\EasyDocBundle\EasyDocBundle();
            }
        }
    }

    // ...
}

Usage

Run the doc command in your Symfony application to generate the documentation:, (*5)

$ cd your-project/
$ ./bin/console doc

The Versions