PHPackages                             joseki/file-template - 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. [CLI &amp; Console](/categories/cli)
4. /
5. joseki/file-template

ActiveLibrary[CLI &amp; Console](/categories/cli)

joseki/file-template
====================

PhpStorm FileTemplate generator for Nette Framework application using Symfony/Console.

v0.2.5(9y ago)41.3k1[1 issues](https://github.com/Joseki/FileTemplate/issues)MITPHPPHP &gt;=5.3.2

Since Sep 1Pushed 9y ago2 watchersCompare

[ Source](https://github.com/Joseki/FileTemplate)[ Packagist](https://packagist.org/packages/joseki/file-template)[ RSS](/packages/joseki-file-template/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (9)Versions (10)Used By (0)

Joseki/FileTemplate
===================

[](#josekifiletemplate)

[![Build Status](https://camo.githubusercontent.com/7542b95172c57459b31eabbaf54fb36cb343426b49af97082d4ab4fa12aadc34/68747470733a2f2f7472617669732d63692e6f72672f4a6f73656b692f46696c6554656d706c6174652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Joseki/FileTemplate)[![Latest Stable Version](https://camo.githubusercontent.com/44d606460d435b7eb1698a73665d7c77a46f8d6bf1cd3dd8a2c689c803f8d3f7/68747470733a2f2f706f7365722e707567782e6f72672f6a6f73656b692f66696c652d74656d706c6174652f762f737461626c65)](https://packagist.org/packages/joseki/file-template)

Requirements
------------

[](#requirements)

Joseki/FileTemplate requires PHP 5.4 or higher.

- [Nette Framework](https://github.com/nette/nette)
- [Symfony Console](https://github.com/symfony/Console)

Installation
------------

[](#installation)

The best way to install Joseki/FileTemplate is using [Composer](http://getcomposer.org/):

```
$ composer require joseki/file-template
```

Register compiler extension in your `config.neon`:

```
extensions:
  FileTemplate: Joseki\FileTemplate\DI\FileTemplateExtension
```

Example
-------

[](#example)

Add the following to your `config.neon`:

```
extensions:
  FileTemplate: Joseki\FileTemplate\DI\FileTemplateExtension

FileTemplate:
  # root dir for new files
  rootDir: '%appDir%' # [OPTIONAL], %appDir% is default

  # list of file templates groups
  commands:
    example1: # group name used in command line
      variables: ['CONTROL', 'NAMESPACE']
      templates:
        CONTROL_FILE: '%appDir%/templates/control.txt'
        FACTORY_FILE: '%appDir%/templates/factory.txt'
        TEMPLATE_FILE: '%appDir%/templates/template.txt'
      defaults: # [OPTIONAL] default values for variables
        CONTROL_FILE: '${CONTROL}.php'
        FACTORY_FILE: '${CONTROL}Factory.php'
        TEMPLATE_FILE: template.latte
```

Running a console command
-------------------------

[](#running-a-console-command)

```
app/console joseki:file-template COMMAND [--dir=RELATIVE_DIRECTORY]
```

for example:

```
app/console joseki:file-template example1
```

Suppose that variables `${CONTROL} = Hello` and `${NAMESPACE} = Foo`, then the previous command will create these files:

- %appDir%/Foo/Hello.php
- %appDir%/Foo/HelloFactory.php
- %appDir%/Foo/template.latte

and when a directory is specified:

```
app/console joseki:file-template example1 --dir=MyApplication/Auth
```

...these files will be created:

- %appDir%/MyApplication/Auth/Hello.php
- %appDir%/MyApplication/Auth/HelloFactory.php
- %appDir%/MyApplication/Auth/template.latte

NOTE: you will be prompted to define your file template variables

NOTE: this extension should be compatible with [Joseki/Console](https://github.com/Joseki/Console) and [Kdyby/Console](https://github.com/Kdyby/Console).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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.

###  Release Activity

Cadence

Every ~51 days

Recently: every ~86 days

Total

9

Last Release

3502d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1245190?v=4)[Miroslav Paulík](/maintainers/castamir)[@castamir](https://github.com/castamir)

---

Tags

consolephpstormjosekifile a code templates

### Embed Badge

![Health badge](/badges/joseki-file-template/health.svg)

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

###  Alternatives

[psy/psysh

An interactive shell for modern PHP.

9.8k545.6M719](/packages/psy-psysh)[crunzphp/crunz

Schedule your tasks right from the code.

2292.0M6](/packages/crunzphp-crunz)[drupal/console-core

Drupal Console Core

13514.7M12](/packages/drupal-console-core)[kdyby/console

Symfony Console integration for Kdyby components

601.8M73](/packages/kdyby-console)[contributte/console

Best Symfony Console for Nette Framework

983.6M49](/packages/contributte-console)[acquia/orca

A tool for testing a company's software packages together in the context of a realistic, functioning, best practices Drupal build

32902.4k](/packages/acquia-orca)

PHPackages © 2026

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