PHPackages                             tourze/php-packer-config - 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. tourze/php-packer-config

ActiveLibrary

tourze/php-packer-config
========================

配置管理工具，用于PHP Packer的配置加载、验证和管理

0.0.1(1y ago)01201MITPHPPHP ^8.1CI passing

Since Apr 11Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/tourze/php-packer-config)[ Packagist](https://packagist.org/packages/tourze/php-packer-config)[ RSS](/packages/tourze-php-packer-config/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (1)

PHP Packer Config
=================

[](#php-packer-config)

[English](README.md) | [中文](README.zh-CN.md)

[![Latest Version](https://camo.githubusercontent.com/ea36ed070aad7782833030fef6acc8c190c95350046cdc34513a362d2abd47f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f7068702d7061636b65722d636f6e6669672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/php-packer-config)[![Build Status](https://camo.githubusercontent.com/4796df367193ef58249160ec4f36b53d5664cee2ffa687ffa4479e5b78c01694/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f746f75727a652f7068702d7061636b65722d636f6e6669672f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/tourze/php-packer-config)[![Quality Score](https://camo.githubusercontent.com/8c0cd5c6c7b684e033f44b3be89e775d2673c361fda9c18857bad13095de28e7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f746f75727a652f7068702d7061636b65722d636f6e6669672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/tourze/php-packer-config)[![Total Downloads](https://camo.githubusercontent.com/52e111b5cd9569932254b906ea970f8399015e19491ea4c15ddb7041d68fb057/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f7068702d7061636b65722d636f6e6669672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/php-packer-config)

A lightweight and robust configuration management component for PHP Packer, responsible for loading, validating, and managing configuration files.

Features
--------

[](#features)

- Load and parse configuration files
- Validate configuration and handle errors
- Unified configuration access interface
- Flexible configuration options and extensibility

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

[](#installation)

**Requirements:** PHP &gt;= 8.1, psr/log

```
composer require tourze/php-packer-config
```

Quick Start
-----------

[](#quick-start)

### Basic Usage

[](#basic-usage)

```
use PhpPacker\Config\Configuration;
use Psr\Log\LoggerInterface;

// Create a configuration instance
$configuration = new Configuration('path/to/config.php', $logger);

// Read configuration values
$entryFile = $configuration->getEntryFile();
$outputFile = $configuration->getOutputFile();
```

### Example Config File

[](#example-config-file)

```
// config.php
return [
    'entry' => 'src/index.php',
    'output' => 'dist/app.php',
    'exclude' => [
        'vendor/some-package',
        'tests',
    ],
    'assets' => [
        'src/assets/image.png' => 'assets/image.png',
    ],
    'minify' => true,
    'comments' => false,
    'debug' => false,
];
```

Configuration Options
---------------------

[](#configuration-options)

OptionTypeDefaultDescriptionentrystring-Entry file path (required)outputstring-Output file path (required)excludearray\[\]Patterns for files/directories to skipassetsarray\[\]Asset files mapping (source =&gt; target)minifyboolfalseWhether to minify codecommentsbooltrueKeep comments in outputdebugboolfalseEnable debug modeclean\_outputboolfalseClean output directory before buildremove\_namespaceboolfalseRemove namespace from outputContribution Guide
------------------

[](#contribution-guide)

- Issues and PRs are welcome
- Follow PSR coding standards
- Please ensure tests pass before submitting

License
-------

[](#license)

MIT License

Changelog
---------

[](#changelog)

See [CHANGELOG](../../CHANGELOG.md)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance49

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

399d ago

### Community

Maintainers

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

---

Top Contributors

[![tourze](https://avatars.githubusercontent.com/u/13899502?v=4)](https://github.com/tourze "tourze (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tourze-php-packer-config/health.svg)

```
[![Health](https://phpackages.com/badges/tourze-php-packer-config/health.svg)](https://phpackages.com/packages/tourze-php-packer-config)
```

###  Alternatives

[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[api-platform/metadata

API Resource-oriented metadata attributes and factories

223.5M96](/packages/api-platform-metadata)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[flowwow/cloudpayments-php-client

cloudpayments api client

2188.2k](/packages/flowwow-cloudpayments-php-client)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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