Scribe可以帮助您自动生成文档,但是如果您真的想制作友好,可维护和可测试的API文档,则还需要了解更多信息。所以我为你做了一门课程。🤗
|
il y a 4 ans | |
---|---|---|
.github | il y a 4 ans | |
config | il y a 4 ans | |
docs | il y a 4 ans | |
resources | il y a 4 ans | |
routes | il y a 4 ans | |
src | il y a 4 ans | |
tests | il y a 4 ans | |
.editorconfig | il y a 9 ans | |
.gitattributes | il y a 6 ans | |
.gitignore | il y a 5 ans | |
.styleci.yml | il y a 5 ans | |
.travis.yml | il y a 4 ans | |
CHANGELOG.0-1.md | il y a 5 ans | |
CHANGELOG.md | il y a 4 ans | |
CONTRIBUTING.md | il y a 5 ans | |
LICENSE.md | il y a 4 ans | |
README.md | il y a 4 ans | |
composer.dingo.json | il y a 4 ans | |
composer.json | il y a 4 ans | |
logo-scribe.png | il y a 5 ans | |
phpstan.neon | il y a 4 ans | |
phpunit.xml | il y a 4 ans | |
todo.md | il y a 5 ans |
Generate API documentation for humans from your Laravel codebase. Here's what the output looks like.
Looking to document your Node.js APIs? Check out Scribe for JS.
Scribe is a fork of mpociot/laravel-apidoc-generator, so see the migration guide if you're coming from there.
Check out the documentation at ReadTheDocs.
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 (no --dev
.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');
Contributing is easy! See our contribution guide.