artisansdk / blueprint
A render for API Blueprints compatible with Laravel.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=7.0
- erusev/parsedown: ^1.7.0
- erusev/parsedown-extra: ^0.7.1
- hmaus/drafter-installer: ^1.0.1
- hmaus/drafter-php: ^5.0
- hmaus/reynaldo: dev-Parameter-Number-bug
- illuminate/config: ^5.4|^6.0
- illuminate/console: ^5.4|^6.0
- illuminate/support: ^5.4|^6.0
- illuminate/view: ^5.4|^6.0
- laravel-zero/framework: ^5.4|^6.0
- symfony/console: ~4.2
This package is auto-updated.
Last update: 2024-11-10 21:59:37 UTC
README
A render for API Blueprints compatible with Laravel.
Table of Contents
Installation
Blueprint can be installed as a standalone application, capable of developing locally and serving the static assets:
composer create-project artisansdk/blueprint
The Blueprint package installs into a PHP application like any other PHP package:
composer require artisansdk/blueprint
Usage Guide
If setup as a standalone application the following commands are available:
bin/blueprint export [--format=html] bin/blueprint serve [--host=127.0.0.1] [--port=8000] [--tries=10]
If installed into a Laravel project the following commands are registered:
php artisan blueprint:export [--format=html] php artisan blueprint:serve [--host=127.0.0.1] [--port=8000] [--tries=10]
Additionally there are Composer scripts that wrap these commands:
composer export
composer serve
composer watch
Note: The
composer watch
script relies uponwatchman-make
in order to watch the Blade and config file changes and then automatically re-export the API Blueprint as HTML.
Blueprint Development
Typically during development of the API Blueprint, developers will be tweaking the contents of the API Blueprint itself but will also make changes to the Blade templates and corresponding stylesheets. Open 3 separate terminals and run each of the following to watch for asset changes and template changes and to host a development PHP server:
yarn watch composer watch composer serve
Licensing
Copyright (c) 2023 Artisan Made
This package is released under the MIT license. Please see the LICENSE file distributed with every copy of the code for commercial licensing terms.