PHPackages                             wzulfikar/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. wzulfikar/file-generator

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

wzulfikar/file-generator
========================

Generate file from template using blade template engine.

09PHP

Since Dec 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/wzulfikar/file-generator)[ Packagist](https://packagist.org/packages/wzulfikar/file-generator)[ RSS](/packages/wzulfikar-file-generator/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

File Generator
==============

[](#file-generator)

Generate file from template, using laravel blade as template engine. See: http://laravel.com/docs/5.1/blade.

Getting Started
---------------

[](#getting-started)

- prepare your template file, use `.blade.php` as extension

    `$myViewTemplate = '/user/desktop/view.blade.php'`
- prepare array of variables that will be injected to the template

    `$vars = ['var1'=>'ha','var2'=>'hi'];`
- create new instance of FileGenerator

    `$fileGenerator = new FileGenerator($myViewTemplate, $vars)`
- Put rendered template file to output dir

    `$fileGenerator->put('/user/desktop/GeneratedFromTemplate.php')`

Testing
-------

[](#testing)

- use `phpunit` in curent directory to execute test.

The test will use `views/Model.blade.php` as template, inject `$vars`, store generated file as `GeneratedFromTemplate.php` and delete that generated file upon test completion.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7823011?v=4)[Wildan Zulfikar](/maintainers/wzulfikar)[@wzulfikar](https://github.com/wzulfikar)

---

Top Contributors

[![wzulfikar](https://avatars.githubusercontent.com/u/7823011?v=4)](https://github.com/wzulfikar "wzulfikar (12 commits)")

### Embed Badge

![Health badge](/badges/wzulfikar-file-generator/health.svg)

```
[![Health](https://phpackages.com/badges/wzulfikar-file-generator/health.svg)](https://phpackages.com/packages/wzulfikar-file-generator)
```

###  Alternatives

[venveo/craft-compress

Create smart zip files from Craft assets on the fly

124.7k](/packages/venveo-craft-compress)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
