artur-gajewski/documentor-bundle
DocumentorBundle is a Symfony2 bundle that wraps phpDocumentor2 to generate your project's documentation.
app/consoledocumentation:create to generate the documentation for files located in ./srcweb/bundles/documentor or http://yourproject.dev/app_dev.php/bundles/documentor/index.htmlDocumentorBundle boasts the following features:
DocumentorBundle requires the following:
phpdoc from the CLIThe suggested install method is via Composer
Add DocumentorBundle to your composer.json file:
{
"require-dev": {
"artur-gajewski/phpdocumentor-bundle": "dev-master"
}
}
Tell Composer to update this bundle:
php composer.phar update artur-gajewski/phpdocumentor-bundle
Enable the bundle for your development environment:
// app/AppKernel.php
public function registerBundles()
{
// Register normal bundles
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
// ...
$bundles[] = new Aga\DocumentorBundle\DocumentorBundle();
}
}
Go to your project root and generate the documentation using the bundle's built-in DocumentorCommand:
$ app/console documentation:create
This command will generate documentation for all files in the src/ directory.
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
If you want to contribute to this project then just fork it, modify it and send a pull request. It's dead simple!
How can I help you explore Laravel packages today?