dev-master
9999999-dev https://github.com/artur-gajewski/DocumentorBundleSymfony2 bundle to implement phpDocumentor into any project from which the documentation is accessible with a browser.
MIT
The Requires
- php >=5.3.3
phpdocumentor
Wallogit.com
2017 © Pedro Peláez
Symfony2 bundle to implement phpDocumentor into any project from which the documentation is accessible with a browser.
DocumentorBundle is a Symfony2 bundle that wraps phpDocumentor2 to generate your project's documentation., (*1)
app/consoledocumentation:create to generate the documentation for files located in ./src
web/bundles/documentor or http://yourproject.dev/app_dev.php/bundles/documentor/index.htmlDocumentorBundle boasts the following features:, (*2)
DocumentorBundle requires the following:, (*3)
phpdoc from the CLIThe suggested install method is via Composer, (*4)
Add DocumentorBundle to your composer.json file:, (*5)
{
"require-dev": {
"artur-gajewski/phpdocumentor-bundle": "dev-master"
}
}
Tell Composer to update this bundle:, (*6)
php composer.phar update artur-gajewski/phpdocumentor-bundle
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 Aga\DocumentorBundle\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)
If you want to contribute to this project then just fork it, modify it and send a pull request. It's dead simple!, (*11)
Symfony2 bundle to implement phpDocumentor into any project from which the documentation is accessible with a browser.
MIT
phpdocumentor