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

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

skpr/config
===========

Reads skipper configuration files.

3.0.2(3y ago)3177.0k↓18.1%1[2 issues](https://github.com/skpr/php-config/issues)1GPL-2.0-or-laterPHPPHP ^7.2||^8.0

Since Sep 23Pushed 1y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (4)Versions (13)Used By (1)

PHP Config
==========

[](#php-config)

[![CircleCI](https://camo.githubusercontent.com/de8d2b001937b7ab8378322b4493e70d186b4f6153af961e92d9eaae5ccc7faf/68747470733a2f2f636972636c6563692e636f6d2f67682f736b70722f7068702d636f6e6669672e7376673f7374796c653d737667)](https://circleci.com/gh/skpr/php-config)

A simple utility for reading skpr config from a directory, and populating environment variables in PHP applications.

The default skpr config directory is /etc/skpr

Usage
-----

[](#usage)

### Loading config

[](#loading-config)

```
$config = SkprConfig::create()->load();
$config->get('foo.bar');
```

### Setting environment variables

[](#setting-environment-variables)

You can optionally set environment variables from Skpr config.

```
$config = SkprConfig::create()->load();
$config->putAllEnvs();
```

Keys will be converted to uppercase, and dots are converted to underscores. For example:

```
getenv('FOO_BAR')

```

You can also provide a list of config keys, to avoid adding all config as environment variables:

```
$config = SkprConfig::create()->load();
$config->putEnvs(['my.key1', 'my.key2']);
```

Testing
-------

[](#testing)

Run tests using the following:

`bin/phpunit`

Code Standards
--------------

[](#code-standards)

Run code style checks with the following:

`bin/phpcs`

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 70% 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 ~118 days

Recently: every ~156 days

Total

11

Last Release

1251d ago

Major Versions

1.0.0-alpha1 → 2.0.0-alpha12019-12-03

2.2.0 → 3.0.02021-03-31

2.x-dev → 3.0.22022-12-15

PHP version history (4 changes)1.0.0-alpha1PHP ^7.0

2.0.0-alpha1PHP ^7.1

2.1.0PHP ^7.2

2.2.0PHP ^7.2||^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/92d36d6b96f06f66b047afc697b73f2a66df922a642e714d380fb68d0458da40?d=identicon)[skpr](/maintainers/skpr)

---

Top Contributors

[![kimpepper](https://avatars.githubusercontent.com/u/6132?v=4)](https://github.com/kimpepper "kimpepper (21 commits)")[![larowlan](https://avatars.githubusercontent.com/u/555254?v=4)](https://github.com/larowlan "larowlan (6 commits)")[![nickschuch](https://avatars.githubusercontent.com/u/1459612?v=4)](https://github.com/nickschuch "nickschuch (2 commits)")[![acbramley](https://avatars.githubusercontent.com/u/569927?v=4)](https://github.com/acbramley "acbramley (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/skpr-config/health.svg)

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

###  Alternatives

[winter/laravel-config-writer

Utility to create and update Laravel config and .env files

16300.9k9](/packages/winter-laravel-config-writer)

PHPackages © 2026

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