PHPackages                             kiryi/inyi - 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. kiryi/inyi

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

kiryi/inyi
==========

Simple INI file reader.

1.0.2(6y ago)0654GPL-3.0-or-laterPHPPHP ^7.4

Since Apr 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/KiryiMONZTA/inyi)[ Packagist](https://packagist.org/packages/kiryi/inyi)[ Docs](https://kiryi.net/)[ RSS](/packages/kiryi-inyi/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (1)Versions (4)Used By (4)

Kiryi's INYI
============

[](#kiryis-inyi)

A simple INI file reader.

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

[](#installation)

```
composer require kiryi/inyi
```

Usage
-----

[](#usage)

```
$inyi = new \Kiryi\Inyi\Reader($filepath);
$value = $inyi->get($key);
```

Constructor Definition
----------------------

[](#constructor-definition)

```
__construct(string $filepath)
```

### Parameters

[](#parameters)

**filepath**
The filepath to your INI file. It is relative to your project's root directory.

Method Definition *get*
-----------------------

[](#method-definition-get)

```
get(string $key)
```

### Parameters

[](#parameters-1)

**key**
The key to read the value from the INI file. Key levels are seperated by double colons.

### Return Values

[](#return-values)

Returns the value corresponding to the key. Since it is possible to define strings as well as arrays in an INI file, the return type can be either. If the key is not defined or the INI file is broken or non existing, an exception is thrown.

Example
-------

[](#example)

*configuration/config.ini*

```
[database]
user = kiryi
password = qwe123
```

*src/Config.php*

```
(new \Kiryi\Inyi\Reader('configuration/config.ini'))->get('database::user');
```

*returns*

```
kiryi

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

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

Total

3

Last Release

2213d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ffe67def05c2db0488d5cb9447c425a765764752c0a2cb9e0a254073ac1c25d?d=identicon)[Kiryi](/maintainers/Kiryi)

---

Top Contributors

[![oxSteven](https://avatars.githubusercontent.com/u/57273424?v=4)](https://github.com/oxSteven "oxSteven (11 commits)")

### Embed Badge

![Health badge](/badges/kiryi-inyi/health.svg)

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

PHPackages © 2026

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