onetechasia / laravel-export-docs
Auto generate document system with laravel
v1.0.6
2023-08-29 04:48 UTC
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.7
- maatwebsite/excel: ^3.1
- nikic/php-parser: ^v4.13.0
- nyholm/psr7: ^1.8
- openai-php/client: ^0.6.4
- phpdocumentor/graphviz: ^1.0
- symfony/http-client: ^6.3
- zircote/swagger-php: ^4.7
Requires (Dev)
- phpunit/phpunit: >=9.0
README
You can install the package via composer.
composer require onetechasia/laravel-export-docs
Requirements
This package requires the graphviz
tool.
You can install Graphviz on MacOS via homebrew:
brew install graphviz
For using chat GPT translate document
Add to .env: OPENAI_API_KEY=sk-xxxxx
Export database diagram
php artisan docs:diagram
Check file in storage/app/export/database/
Export database document
php artisan docs:database
Check file in storage/app/export/database/
Export API document not release yet
php artisan docs:api-spec --collection=url-collection-postman-required --environment=path/postman-environment.json
Note that: postman enviroment must include token login Check file in storage/app/export/api/