Download the PHP package angle/architect without Composer
On this page you can find all versions of the php package angle/architect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package architect
Architect
Software architecture library for the Laravel Framework.
Introduction
Architect provides an expressive way to organize and generate boilerplate classes that will hold your application's business logic. The goal of this package is to implement a component-oriented back-end architecture. By using decoupled components, you may reuse parts of your code accross multiple services (Controllers and various API endpoints).
Architect will create tests for each classes it generates, encouraging a Test-Driven Development approach within your team.
Installation
Composer
First, add the Architect package to your dependencies:
Run The Architect Installer
To finish the installation process and configure the package, use the Artisan command:
Generating Sprints
To create a sprint, use the Artisan command:
The new sprint will be placed in your directory (you can set it either during installation, either by editing ). Each sprint file name contains a timestamp which allows Laravel to determine the order of the sprints.
Sprint Structure
A sprint class contains one method: run. This method is used to generate new features, tasks, and tests for each of these.
Within this method you may use the Architect code Blueprint to expressively create new classes.
Running Sprints
To run all of your sprints, execute the Artisan command:
Pretending To Run Sprints
You can safely test your sprint by running the Artisan command with the option:
Forcing Sprints To Overwrite Existing Files
You can force the overwriting of existing files by running the Artisan command with the option:
Rolling Back Sprints
Just like you do with Laravel Migrations, you can rollback sprints. This will remove any file generated by the last batch. Note: you can also append the option in order to preview changes.