Download the PHP package laravel-shift/blueprint without Composer
On this page you can find all versions of the php package laravel-shift/blueprint. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel-shift/blueprint
More information about laravel-shift/blueprint
Files in laravel-shift/blueprint
Package blueprint
Short Description An expressive, human readable code generation tool.
License MIT
Informations about the package blueprint
Blueprint is an open-source tool for rapidly generating multiple Laravel components from a single, human readable definition.
Watch a quick demo of Blueprint in action or continue reading to get started.
Requirements
Blueprint requires a Laravel application running a supported version of Laravel. Currently that is Laravel 11 or higher.
Installation
You may install Blueprint via Composer using the following command:
Blueprint will automatically register itself using package discovery.
If you wish to run the tests generated by Blueprint, you should also install the Additional Assertions package:
Basic Usage
Blueprint comes with a set of artisan commands. The one you'll use to generate the Laravel components is the blueprint:build command:
The draft file contains a definition of the components to generate. Let's review the following example draft file which generates some blog components:
From these 20 lines of YAML, Blueprint will generate all of the following Laravel components:
- A model class for
Postcomplete withfillable,casts, anddatesproperties, as well as relationships methods. - A migration to create the
poststable. - A factory intelligently setting columns with fake data.
- A controller class for
PostControllerwithindexandstoreactions complete with code generated for each statement. - Routes for the
PostControlleractions. - A form request of
StorePostRequestvalidatingtitleandcontentbased on thePostmodel definition. - A mailable class for
ReviewPostcomplete with apostproperty set through the constructor. - A job class for
SyncMediacomplete with apostproperty set through the constructor. - An event class for
NewPostcomplete with apostproperty set through the constructor. - A Blade template of
post/index.blade.phprendered byPostController@index. - An HTTP Test for the
PostController. - A unit test for the
StorePostRequestform request.
Note: This example assumes features within a default Laravel application such as the User model and app.blade.php layout. Otherwise, the generated tests may have failures.
Documentation
Browse the Blueprint Docs for full details on defining models, defining controllers, advanced configuration, and extending Blueprint.
Support Policy
Starting with version 2, Blueprint only generates code for supported versions of Laravel (currently Laravel 11 or higher). If you need to support older versions of Laravel, you may constrain Blueprint to an older version or upgrade your application (try using Shift).
Blueprint still follows semantic versioning. However, it does so with respect to its grammar. Any changes to the grammar will increase its major version number. Otherwise, minor version number increases will contain new features. This includes generating code for future versions of Laravel.
All versions of blueprint with dependencies
illuminate/database Version >=12.0
illuminate/filesystem Version >=12.0
illuminate/support Version >=12.0
laravel-shift/faker-registry Version ^0.3.0
nunomaduro/termwind Version ^2.3
symfony/yaml Version >=7.0