Scribe可以帮助您自动生成文档,但是如果您真的想制作友好,可维护和可测试的API文档,则还需要了解更多信息。所以我为你做了一门课程。🤗
|
4 年之前 | |
---|---|---|
.github | 4 年之前 | |
config | 4 年之前 | |
docs | 4 年之前 | |
resources | 4 年之前 | |
routes | 4 年之前 | |
src | 4 年之前 | |
tests | 4 年之前 | |
.editorconfig | 9 年之前 | |
.gitattributes | 6 年之前 | |
.gitignore | 5 年之前 | |
.travis.yml | 4 年之前 | |
CHANGELOG.0-1.md | 5 年之前 | |
CHANGELOG.1-2.md | 4 年之前 | |
CHANGELOG.md | 4 年之前 | |
CONTRIBUTING.md | 5 年之前 | |
LICENSE.md | 4 年之前 | |
README.md | 4 年之前 | |
composer.dingo.json | 4 年之前 | |
composer.json | 4 年之前 | |
logo-scribe.png | 5 年之前 | |
phpstan.neon | 4 年之前 | |
phpunit.xml | 4 年之前 |
Still on v1? Here's the v2 migration guide.
Generate API documentation for humans from your Laravel codebase. Here's what the output looks like.
There's a Node.js version, too!
👋 Want to learn how to make friendly, testable, and maintainable API documentation? I made a course for you! Get 40% off until 28 November with the code KICKASSDOCSYEAH.
See the migration guide if you're coming from mpociot/laravel-apidoc-generator.
Check out the documentation at ReadTheDocs.
PHP 7.2.5 and Laravel/Lumen 6.0 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.