Provides generators, helpers, and utilities for rapid prototyping of Slytherin-based applications.
Weasley is a PHP package that provides generators, helpers, and utilities for rapid prototyping of Slytherin-based applications. Might be useful for developing Slytherin-based applications with a time constraint.
Weasley via Composer:
$ composer require rougin/weasley
Access the generator commands through
vendor/bin/weasley in the terminal/command line. To know the more the arguments and options, include the option
--help to the chosen command.
|make:controller||Creates a new HTTP controller class|
|make:integration||Creates a new Slytherin Integration class|
|make:middleware||Creates a new |
|make:validator||Creates a new validator class based on Valitron|
|JsonController||Provides methods for RESTful APIs in JSON format|
|SessionIntegration||An implementation of SessionHandlerInterface|
|DatabaseIntegration||Based on illuminate/database (Eloquent)|
|PaginationIntegration||Based on illuminate/pagination|
|ViewIntegration||Based on illuminate/view (Blade)|
NOTE: The mentioned integrations above needs to include their required dependencies first.
|CrossOriginHeaders||Adds additional headers for CORS|
|EmptyStringToNull||Converts the empty strings from request as |
|SpoofFormMethod||Replaces the HTTP verb from |
|JsonHeaders||Changes content response to |
|TrimString||Trims the strings from an incoming request|
NOTE: All of the HTTP middlewares above are implemented in the
v0.4.1 of PSR-15.