PHPackages                             hpeccatte/properties-parser - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. hpeccatte/properties-parser

ActiveLibrary[File &amp; Storage](/categories/file-storage)

hpeccatte/properties-parser
===========================

Parser for properties files.

1.0.3(4y ago)111.4k↓39.1%1MITPHPPHP ^7.1|^8.0

Since Dec 2Pushed 4y ago2 watchersCompare

[ Source](https://github.com/Tithugues/PropertiesParser)[ Packagist](https://packagist.org/packages/hpeccatte/properties-parser)[ RSS](/packages/hpeccatte-properties-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (24)Used By (0)

[![Build Status](https://camo.githubusercontent.com/227e032d868163e31052a870dde64f4ecff04d5ac6bcbbad50442ee1f258c44b/68747470733a2f2f7472617669732d63692e6f72672f5469746875677565732f50726f706572746965735061727365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Tithugues/PropertiesParser)

Properties Parser
=================

[](#properties-parser)

Here is a **PHP** library to retrieve the properties of a `.properties` file.

It seems that `.properties` files are mainly used by Java programs. But you may have also defined a `properties` file in a **PHP** project or would like to use the same file with both languages.

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

[](#installation)

```
composer require hpeccatte/properties-parser

```

`.properties` file format
-------------------------

[](#properties-file-format)

### Define a property

[](#define-a-property)

In a `.properties` file, property/value can be separated by `=`, `:` or a whitespace.

A property can also be defined on multiple lines:

```
property = value \
      which \
      is \
      multilined

```

In this case, the property will be `property` and the value `value which is multilined`.

### Comments

[](#comments)

You can define comments in your file by starting a line with `#` or `!` characters.

References
----------

[](#references)

This parser was implemented to try to match as much as possible the behavior defined by the [Java Properties Parser](https://docs.oracle.com/javase/10/docs/api/java/util/Properties.html).

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 95.6% 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 ~52 days

Recently: every ~283 days

Total

23

Last Release

1581d ago

Major Versions

0.7.0 → 1.0.02018-12-21

PHP version history (3 changes)0.1.0PHP ^7.2

0.5.1PHP ^7.1

1.0.2PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7da12f4ff9731ea00f930799db674a9e94a60657d79bbc77feb348c32b77c8ce?d=identicon)[hugues.peccatte](/maintainers/hugues.peccatte)

---

Top Contributors

[![Tithugues](https://avatars.githubusercontent.com/u/1165150?v=4)](https://github.com/Tithugues "Tithugues (43 commits)")[![niconoe-](https://avatars.githubusercontent.com/u/9560327?v=4)](https://github.com/niconoe- "niconoe- (2 commits)")

---

Tags

parserfileformatproperties

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.2k](/packages/league-flysystem)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[knplabs/knp-gaufrette-bundle

Allows to easily use the Gaufrette library in a Symfony project

72428.6M91](/packages/knplabs-knp-gaufrette-bundle)[league/flysystem-local

Local filesystem adapter for Flysystem.

225231.8M39](/packages/league-flysystem-local)[league/flysystem-memory

In-memory filesystem adapter for Flysystem.

8533.6M194](/packages/league-flysystem-memory)

PHPackages © 2026

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