PHPackages                             ellire/reprocess-templates - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ellire/reprocess-templates

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ellire/reprocess-templates
==========================

Ellire simplifies deployment-specific configuration for your applications

0.8.0(9y ago)029[1 issues](https://github.com/kierate/ellire-reprocess-templates/issues)PHPPHP ^5.3.3 || ^7.0

Since Aug 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/kierate/ellire-reprocess-templates)[ Packagist](https://packagist.org/packages/ellire/reprocess-templates)[ RSS](/packages/ellire-reprocess-templates/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

Ellire - deployment-specific configuration management
=====================================================

[](#ellire---deployment-specific-configuration-management)

- [Introduction](https://github.com/kierate/ellire-reprocess-templates/#introduction)
- [Templates](https://github.com/kierate/ellire-reprocess-templates/#templates)
- [Macros](https://github.com/kierate/ellire-reprocess-templates/#macros)
- [Profile](https://github.com/kierate/ellire-reprocess-templates/#profile)
- [Macro configuration](https://github.com/kierate/ellire-reprocess-templates/#macro-configuration)
- [Different configuration files](https://github.com/kierate/ellire-reprocess-templates/#different-configuration-files)
- [Environment variables](https://github.com/kierate/ellire-reprocess-templates/#environment-variables)
- [Macro overrides](https://github.com/kierate/ellire-reprocess-templates/#macro-overrides)
- [Installation](https://github.com/kierate/ellire-reprocess-templates/#installation)
- [Running](https://github.com/kierate/ellire-reprocess-templates/#running)
- [Other Commands](https://github.com/kierate/ellire-reprocess-templates/#other-commands)
- [License](https://github.com/kierate/ellire-reprocess-templates/#license)
- [Acknowledgments](https://github.com/kierate/ellire-reprocess-templates/#acknowledgments)

Introduction
------------

[](#introduction)

Ellire simplifies deployment-specific configuration for your applications.

You provide "macro" configuration for all different "profiles" your applications run in (e.g. dev, test, staging, prod) and with that Ellire can process all "template" files where macros are used to generate the final files relevant for the environment/deployment.

These 3 main concepts are covered in depth in the sections below.

### Templates

[](#templates)

A template file is any file in your application's codebase with the extension as defined in the `dist_file_extension` macro (`template` by default). Such files will be processed by Ellire and it will generate the non-template files (if you want to exclude certain directories from processing then provide them as a comma-separated list paths relative to the root of your project in the `template_exclude_paths` macro). Any files in your application that change depending on the server/environment they are deployed to should be made into templates.

Let have a look at a simple example. Imagine you have this file in your codebase under `app/config/config.php`:

```
