PHPackages                             websublime/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. websublime/config

AbandonedArchivedPackage

websublime/config
=================

A config component catalogue.

v0.2.0(13y ago)016MITPHPPHP &gt;=5.3.14

Since May 3Pushed 12y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (4)Used By (0)

Websublime\\Config
==================

[](#websublimeconfig)

[![Build Status](https://camo.githubusercontent.com/5e5a21b70e681a3ef76f0fdd7884e8190e7c42e3f88423bd09dac0c22b7cd589/68747470733a2f2f7472617669732d63692e6f72672f7765627375626c696d652f636f6e6669672e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/websublime/config)

\##Syntax Config component is a package based on Symfony Config where it is used as a catalogue of configurations. It can be inserted or just loading from two types of files: yml and php. We do not have made more supported files because it is this kind of files that we most use.

\##How To Use First create an instance of which type of loader for the file you want to use.

```
$yaml = new YamlConfigLoader('/path/where/config/will/be');

```

Then create an instance of Config and set the loader resolver.

```
$config = new Config();
$config->setConfigResolver($yaml);

```

After, you have to import your configuration file.

```
$config->import('myconfig.yml');

```

The import method is void. The configuration is added to ConfigCatalogue were you can interact in Config. Lets say your config fil have:

```
config:
	key: 'My new option'

```

When you import your configuration file it is registered in ConfigCatalogue with the name of your file without extension and if it is an array multidimensional it will be transformer in a flatten array. So to get our value from our config we call:

```
$config->get('myconfig.config.key');

```

The methods present in ConfigCatalogue are:

```
ConfigCatalogue->get($key);
ConfigCatalogue->add($value, $key=null);
ConfigCatalogue->remove($key);
ConfigCatalogue->exist($key);
ConfigCatalogue->all();

```

Of course it isn't mandatory to use a file of configurations. You can use it without one. Just instantiate the Config and you are rock and load to use the ConfigueCatalogue methods.

Changelog
---------

[](#changelog)

```
- Added version 0.2
- Added support for loading php files for configs
- Added methods getDelegateLoader() and getLoaderResolver() on ConfigResolver.

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

2

Last Release

4754d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61577d82c7047ef9b029258d738950cae2db6385c36b7f996a3efda9dff83f11?d=identicon)[Miguel Ramos](/maintainers/Miguel%20Ramos)

---

Top Contributors

[![miguelramos](https://avatars.githubusercontent.com/u/495720?v=4)](https://github.com/miguelramos "miguelramos (26 commits)")

### Embed Badge

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

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

###  Alternatives

[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M1.9k](/packages/behat-behat)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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