Scribe可以帮助您自动生成文档,但是如果您真的想制作友好,可维护和可测试的API文档,则还需要了解更多信息。所以我为你做了一门课程。🤗
|
5 년 전 | |
---|---|---|
.github | 5 년 전 | |
config | 5 년 전 | |
docs | 5 년 전 | |
resources | 5 년 전 | |
routes | 5 년 전 | |
src | 5 년 전 | |
tests | 5 년 전 | |
.editorconfig | 9 년 전 | |
.gitattributes | 6 년 전 | |
.gitignore | 5 년 전 | |
.styleci.yml | 5 년 전 | |
.travis.yml | 5 년 전 | |
CHANGELOG.md | 5 년 전 | |
CONTRIBUTING.md | 5 년 전 | |
LICENSE.md | 9 년 전 | |
README.md | 5 년 전 | |
composer.dingo.json | 5 년 전 | |
composer.json | 5 년 전 | |
logo-scribe.png | 5 년 전 | |
phpstan.neon | 5 년 전 | |
phpunit.xml | 5 년 전 | |
todo.md | 5 년 전 |
Generate API documentation for humans from your Laravel codebase. Here's what the output looks like.
PHP 7.2.5 and Laravel/Lumen 5.8 or higher are required.
composer require --dev knuckleswtf/scribe
Publish the config file by running:
php artisan vendor:publish --provider="Knuckles\Scribe\ScribeServiceProvider" --tag=scribe-config
This will create a scribe.php
file in your config
folder.
composer require knuckleswtf/scribe
instead.bootstrap/app.php
:$app->register(\Knuckles\Scribe\ScribeServiceProvider::class);
vendor/knuckleswtf/scribe/config/scribe.php
to your project as config/scribe.php
. Then add to your bootstrap/app.php
:$app->configure('scribe');
Check out the documentation at ReadTheDocs. Don't forget to check out the migration guide if you're coming from mpociot/laravel-apidoc-generator.
To learn how to contribute, see our contribution guide.