Symfony应用程序文档生成器
Symfony应用程序文档生成器
PHP 项目文档生成
共97Star
详细介绍
EasyDoc
THIS IS AN EXPERIMENTAL PROOF OF CONCEPT - ISSUES PROPOSING IDEAS ARE WELCOME ... BUT WE CAN'T ACCEPT PULL REQUESTS YET.
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.)
When would this bundle be useful?
- 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 an searchable archive of legacy applications.
This is how it looks (it's just a very early proof-of-concept design):
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'])) {
// ...
$bundles[] = new EasyCorp\Bundle\EasyDocBundle\EasyDocBundle();
}
}
// ...
}
Usage
Run the doc
command in your Symfony application to generate the documentation:
$ cd your-project/
$ ./bin/console doc