Download the PHP package takemo101/laravel-simple-templa without Composer
On this page you can find all versions of the php package takemo101/laravel-simple-templa. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-simple-templa
The Simple Templa For Laravel
This package is a wrap of Simple Templa for Laravel.
A Scaffold function using Simple Templa has also been added.
Installation
Execute the following composer command.
Publish the config
Publish the config with the following artisan command.
You can set filters and scaffolds from the config.
How to use
Please use as follows
Simple Templa Facade
You can use the template language by using the Facade class.
Scaffold
Run the Artisan command below to generate the Scaffold class.
Please set the input rule and output path in the generated Scaffold class.
Create a stub file as the output source.
Set the created Scaffold class in the config.
After setting the Scaffold class, run Artisan to create the file.
Filter for Laravel
In the template language, you can use Filter using Laravel's Str class. | filter | str method |
---|---|---|
camel | Str::camel | |
headline | Str::headline | |
kebab | Str::kebab | |
lower | Str::lower | |
markdown | Str::markdown | |
plural | Str::plural | |
pluralStudly | Str::pluralStudly | |
reverse | Str::reverse | |
singular | Str::singular | |
slug | Str::slug | |
snake | Str::snake | |
studly | Str::studly | |
title | Str::title | |
ucfirst | Str::ucfirst | |
upper | Str::upper |
All versions of laravel-simple-templa with dependencies
illuminate/support Version ^8|^9
illuminate/filesystem Version ^8|^9
illuminate/console Version ^8|^9
illuminate/validation Version ^8|^9
takemo101/simple-templa Version ^0.1.4