PHPackages                             bravo3/properties - 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. bravo3/properties

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

bravo3/properties
=================

YAML property loader

1.0.2(10y ago)07.6k13MITPHPPHP &gt;=5.4.0

Since May 26Pushed 10y ago5 watchersCompare

[ Source](https://github.com/bravo3/properties)[ Packagist](https://packagist.org/packages/bravo3/properties)[ RSS](/packages/bravo3-properties/feed)WikiDiscussions master Synced 2d ago

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

YAML Property Loader
====================

[](#yaml-property-loader)

This property loader is designed for unit testing and uses the singleton design pattern to achieve this. Consider a dependency injection container if you wanted a property loader for the main application.

Usage
-----

[](#usage)

```
Conf::init('/path');
$c = Conf::getInstance();
$property = $c['some.property'];

```

or simply -

```
Conf::init('/path');
$property = Conf::get('some.property');

```

Defaults can be used here too -

```
$property = Conf::get('some.property', 'default value');

```

Config File
-----------

[](#config-file)

The path in the init line should point to where the properties.yml file should be, if the properties.yml file isn't present, it will look for a properties.yml.dist file. You can change the properties filename with the `init` functions second parameter.

Properties
----------

[](#properties)

YAML arrays are delimited in the property key using periods.

properties.yml:

```
some:
    property: hello world

```

Code:

```
echo Conf::get('some.property');   // hello world

```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~277 days

Total

3

Last Release

3867d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/347611?v=4)[Jordon](/maintainers/jordonsc)[@jordonsc](https://github.com/jordonsc)

---

Top Contributors

[![jordonsc](https://avatars.githubusercontent.com/u/347611?v=4)](https://github.com/jordonsc "jordonsc (3 commits)")[![trq](https://avatars.githubusercontent.com/u/32683?v=4)](https://github.com/trq "trq (2 commits)")[![purinda](https://avatars.githubusercontent.com/u/3181510?v=4)](https://github.com/purinda "purinda (1 commits)")

---

Tags

configproperties

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bravo3-properties/health.svg)

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

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49617.1k](/packages/blackfire-player)[altis/local-server

Local Server module for Altis

18221.6k3](/packages/altis-local-server)[selective/config

Config component, strictly typed

19194.8k3](/packages/selective-config)

PHPackages © 2026

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