PHPackages                             gregurco/copyconf - 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. gregurco/copyconf

AbandonedArchivedYii-extension

gregurco/copyconf
=================

Composer script handling your ignored parameter file

v1.1(11y ago)3231MITPHPPHP &gt;=5.3.0

Since Oct 4Pushed 11y ago2 watchersCompare

[ Source](https://github.com/gregurco/copyconf)[ Packagist](https://packagist.org/packages/gregurco/copyconf)[ Docs](https://github.com/gregurco/copyconf)[ RSS](/packages/gregurco-copyconf/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

CopyConf
========

[](#copyconf)

CopyConf - extension for copying config files.

Usage
-----

[](#usage)

Add the following in your root composer.json file:

```
{
    "require": {
        "gregurco/copyconf": "v1.1"
    },
    "scripts": {
        "post-install-cmd": [
            "Gregurco\\ParameterHandler\\ScriptHandler::buildParameters"
        ],
        "post-update-cmd": [
            "Gregurco\\ParameterHandler\\ScriptHandler::buildParameters"
        ]
    },
    "extra": {
        "copyconf-parameters" : {
            "files": {
                "main_config": "protected/config/config.php"
            }
        }
    }
}
```

Configuration
-------------

[](#configuration)

List of copyconf parameters:

- **files** - array - array of files, that should be processed
- **dist\_ext** - string - extension of files that should be processed (.dist - default)
- **reg\_exp** - string - regular expression used in searching of placeholders
- **backup\_mode** - string - by default **"false"** - not backup overwritten files. Can be set value of **"ask"** or **"true"** to ask on overwriting files or not overwrite in silent mode.
- **backup\_dir** - string - directory where to write backups (backup/ - default)

Example of placeholders:

- {{hostname}} - simple placeholder
- {{hostname|localhost}} - placeholder with default value 'localhost'

Examples
--------

[](#examples)

Example of "extra" with backup:

```
{
    ...
    "extra": {
        "copyconf-parameters" : {
            "files": {
                "main_config": "protected/config/config.php"
            },
            "backup_mode": "ask",
            "backup_dir" : "backup/"
        }
    }
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~18 days

Total

2

Last Release

4226d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e6e4e1affdc07c2a6f474612be36cf3e0532b9f4cf7ce022faa7ecf3504dfc65?d=identicon)[gregurco](/maintainers/gregurco)

---

Top Contributors

[![gregurco](https://avatars.githubusercontent.com/u/4052904?v=4)](https://github.com/gregurco "gregurco (18 commits)")

---

Tags

configparameters managementyii

### Embed Badge

![Health badge](/badges/gregurco-copyconf/health.svg)

```
[![Health](https://phpackages.com/badges/gregurco-copyconf/health.svg)](https://phpackages.com/packages/gregurco-copyconf)
```

###  Alternatives

[symfony/options-resolver

Provides an improved replacement for the array\_replace PHP function

3.2k493.9M1.6k](/packages/symfony-options-resolver)[nette/schema

📐 Nette Schema: validating data structures against a given Schema.

1.0k336.4M125](/packages/nette-schema)[league/config

Define configuration arrays with strict schemas and access values with dot notation

564302.2M24](/packages/league-config)[incenteev/composer-parameter-handler

Composer script handling your ignored parameter file

93174.1M404](/packages/incenteev-composer-parameter-handler)

PHPackages © 2026

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