PHPackages                             zippovich2/wordpress-loader - 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. zippovich2/wordpress-loader

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

zippovich2/wordpress-loader
===========================

Loading constants and environment variables from .env files.

v1.2.0(8mo ago)11.3k[1 issues](https://github.com/Zippovich2/wordpress-loader/issues)1MITPHPPHP ^7.2.5 || ^8.0 || ^9.0

Since Jan 22Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/Zippovich2/wordpress-loader)[ Packagist](https://packagist.org/packages/zippovich2/wordpress-loader)[ RSS](/packages/zippovich2-wordpress-loader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (12)Used By (1)

Wordpress Wrapper Loader
------------------------

[](#wordpress-wrapper-loader)

Loading constants and environment variables from .env files.

[![CI](https://github.com/Zippovich2/wordpress-loader/actions/workflows/main.yml/badge.svg)](https://github.com/Zippovich2/wordpress-loader/actions/workflows/main.yml)[![Packagist](https://camo.githubusercontent.com/7bf0cc4d71f351f5184f733bd09bb1467286b372da331e2426802cd9d1a5d163/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a6970706f76696368322f776f726470726573732d6c6f616465722e737667)](https://packagist.org/packages/zippovich2/wordpress-loader)

### Installation

[](#installation)

*Requirements:*

- php ^7.2.5

```
$ composer require zippovich2/wordpress-loader
```

### Usage

[](#usage)

Add code at beginning in `wp-config.php`:

```
use WordpressWrapper\Loader\Loader;

//...

$loader = new Loader();
$loader->load();
```

You can specify own paths:

```
use WordpressWrapper\Loader\Loader;

//...

$projectRoot = '/path/to/project-root/'; // this directory should containt .env files.
$public = $projectRoot . '/public'; // this directory should containt index.php file
$wpCore = '/wp'; // relevant path from $public to wordpress core directory

$loader = new Loader();
$loader->load($wpCore, $projectRoot, $public);
```

If you want to enable debug add one more line:

```
use WordpressWrapper\Loader\Loader;

//...

$loader = new Loader();
$loader->load();
// default path is '/var/log', relevant ro project root
// it will create directroy if not exists
$loader->debugSettings('/path/to/log/dir');
```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 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 ~293 days

Recently: every ~511 days

Total

8

Last Release

258d ago

PHP version history (3 changes)v1.0PHP ^7.2.5

v1.1.2PHP ^7.2.5 || ^8.0.0

v1.2.0PHP ^7.2.5 || ^8.0 || ^9.0

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

wordpressloaderenvironmentwrapperenvvariablesconstants

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/zippovich2-wordpress-loader/health.svg)

```
[![Health](https://phpackages.com/badges/zippovich2-wordpress-loader/health.svg)](https://phpackages.com/packages/zippovich2-wordpress-loader)
```

###  Alternatives

[vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$\_ENV` and `$\_SERVER` automagically.

13.5k602.4M5.4k](/packages/vlucas-phpdotenv)[symfony/dotenv

Registers environment variables from a .env file

3.8k226.7M2.3k](/packages/symfony-dotenv)[imliam/laravel-env-set-command

Set a .env file variable from the command line

118352.4k10](/packages/imliam-laravel-env-set-command)[ffraenz/private-composer-installer

A composer install helper for private packages

2331.7M5](/packages/ffraenz-private-composer-installer)[m1/env

Env is a lightweight library bringing .env file parser compatibility to PHP. In short - it enables you to read .env files with PHP.

6412.0M21](/packages/m1-env)[msztorc/laravel-env

Laravel env helper commands

7855.4k](/packages/msztorc-laravel-env)

PHPackages © 2026

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