PHPackages                             laravins/template-file-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. laravins/template-file-generator

ActiveProject[File &amp; Storage](/categories/file-storage)

laravins/template-file-generator
================================

File generator from template with data customization.

413PHP

Since Jan 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Vincentdm31/template-file-generator)[ Packagist](https://packagist.org/packages/laravins/template-file-generator)[ RSS](/packages/laravins-template-file-generator/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Template File Generator
=======================

[](#template-file-generator)

**Introduction**

This package allows you to generate files based on template with data customization.

**Installation**

```
composer require laravins/template-file-generator

```

This will install the package inside your project and setup example files.

- `Config file` located at `config/template-file-generator/example-generator.php`
- `Template files` located at `resources/template-file-generator/example-generator/crud-views`

---

**Config file**

This config file will:

- Use template folder located at `projet_path/resources/template_file-generator/example-generator/crud-views`
- Generate two files `list.blade.php` and `edit.blade.php` in `project_path/resources/views/users`.
- Replace each occurences of `%thanks%` by `Thanks for using this package 👌` of generated `list.blade.php` file.
- Replace each occurences of `%stars%` by `Road to 50 ⭐` of generated `list.blade.php` file.
- Replace each occurences of `%heart%` by `❤️` of generated `edit.blade.php` file.
- Replace each occurences of `%dev_attitude%` by `lazy` of generated `edit.blade.php` file.

```
