Download the PHP package vagento/file-generator without Composer
On this page you can find all versions of the php package vagento/file-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package file-generator
Vagento - File Generator
This package adds file generators. It requires the Laravel framework.
Installation
Usage
Stub File Generator - From class
1. Create a new **class** which extends the `\Vagento\FileGenerator\AbstractStubFileGenerator` class.And add the **getter methods** to the class: 2. Create a new **stub file**, which must end with `.blade.php`.
You can use the **blade syntax**: 3. Create a new **instance of the class** and call the `generate()` method.
You can also chain the methods. Which will result in the following file: The `generate()` method will generate the file and overwrite any existing file.
Stub File Generator - From setters
1. Create a new **stub file**, which must end with `.blade.php`.You can use the **blade syntax**: 2. Create a new **instance of the class** and call the `generate()` method.
You can use the **constructor** or use the **methods** (or **chain** them). Which will result in the following file: The `generate()` method will generate the file and overwrite any existing file.
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2021 Valentin Wotschel.
This project is MIT licensed.
All versions of file-generator with dependencies
PHP Build Version
Package Version
The package vagento/file-generator contains the following files
Loading the files please wait ....