PHPackages                             meanbee/libmageconf - 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. meanbee/libmageconf

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

meanbee/libmageconf
===================

Discover Magento environment and configuration information outside of an application installation.

1.0.0(9y ago)74.0k↓50%3MITPHP

Since Jul 5Pushed 9y ago2 watchersCompare

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

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

LibMageConf
===========

[](#libmageconf)

[![Build Status](https://camo.githubusercontent.com/302c71f3e7af86e9bd4976f5b08a132e2ba533bc76c9bc2aa9813f4ddb610ee6/68747470733a2f2f7472617669732d63692e6f72672f6d65616e6265652f6c69626d616765636f6e662e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/meanbee/libmageconf) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/6cfc081a2fb89195ad0a33b2646beafe10684db80ca2c3ac5f87a5a631f0de5b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d65616e6265652f6c69626d616765636f6e662f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/meanbee/libmageconf/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/e6f481f17316e00dce72d52335dc8102a174fd9f32041966594f5248d9772481/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d65616e6265652f6c69626d616765636f6e662f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/meanbee/libmageconf/?branch=master)

This library provides a mechanism for discovering a Magento (1.x and 2.x supported) installation, given a starting directory. This is useful for building tools that integrate externally with Magento but still need access to its configuration or certain files, such as [magedbm](https://github.com/meanbee/magedbm) and [mageconfigsync](https://github.com/punkstar/mageconfigsync).

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

[](#installation)

```
composer require meanbee/libmageconf

```

Usage
-----

[](#usage)

Given that I have Magento installed in `/home/nrj/magento`, I can discover its location with the following code:

```
$rootDiscovery = new RootDiscovery('/home/nrj');

// Outputs: "Root: /home/nrj/magento"
printf("Root: %s", $rootDiscovery->getRootDirectory());

```

Given that I know where the Magento installation's `local.xml` is, I can access the configuration held in that file with the following code:

```
$configReader = ConfigReader\MagentoOne("path/to/local.xml");
$databaseName = $configReader->getDatabaseName();

```

or

```
$configReader = ConfigReader\MagentoTwo("path/to/env.php");
$databaseName = $configReader->getDatabaseName();

```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Total

4

Last Release

3532d ago

Major Versions

0.3.0 → 1.0.02016-09-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/07666e20eb30bff741aaa38f1b450f4475f76fb019f6b52653f514b8b1ede18e?d=identicon)[meanbee](/maintainers/meanbee)

---

Top Contributors

[![punkstar](https://avatars.githubusercontent.com/u/179072?v=4)](https://github.com/punkstar "punkstar (12 commits)")

---

Tags

magento

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/meanbee-libmageconf/health.svg)

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

###  Alternatives

[mage2tv/magento-cache-clean

This package has been migrated to mage-os/magento-cache-clean. Please switch over at your convenience.

5432.1M3](/packages/mage2tv-magento-cache-clean)[magento/magento-composer-installer

Composer installer for Magento modules

7523.3M318](/packages/magento-magento-composer-installer)[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2091.2M7](/packages/yireo-magento2-webp2)[magento-hackathon/magento-composer-installer

Composer installer for Magento modules

214757.6k374](/packages/magento-hackathon-magento-composer-installer)[yireo/magento2-googletagmanager2

Add Google Tag Manager to Magento

167930.4k5](/packages/yireo-magento2-googletagmanager2)[opengento/module-gdpr

Gdpr Compliance Module for Magento 2

14481.5k](/packages/opengento-module-gdpr)

PHPackages © 2026

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