PHPackages                             anandaerditya/dotls - 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. anandaerditya/dotls

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

anandaerditya/dotls
===================

Package for reading and fetch dot-ls (.ls) config file into associative array.

1.0.0(2y ago)05MITPHP

Since Sep 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/anandaerditya/dotls)[ Packagist](https://packagist.org/packages/anandaerditya/dotls)[ RSS](/packages/anandaerditya-dotls/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Dotls
-----

[](#dotls)

[![Static Badge](https://camo.githubusercontent.com/c1e85b8c3b8185512f9c35b17fa515a5e14c23de8f91c80ff72d203b9288275a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f312e302e302d2d52656c656173652d6c735f76657273696f6e3f7374796c653d666f722d7468652d6261646765266c6162656c3d56657273696f6e266c6162656c436f6c6f723d25323330303030303026636f6c6f723d253233663335623534)](https://camo.githubusercontent.com/c1e85b8c3b8185512f9c35b17fa515a5e14c23de8f91c80ff72d203b9288275a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f312e302e302d2d52656c656173652d6c735f76657273696f6e3f7374796c653d666f722d7468652d6261646765266c6162656c3d56657273696f6e266c6162656c436f6c6f723d25323330303030303026636f6c6f723d253233663335623534)[![Static Badge](https://camo.githubusercontent.com/0c28c0ab9812fcad5d872230387e2057710e41e52fdbf3e1e3f3dbe5a920fe8e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f382e785f616e645f75702d6c735f76657273696f6e3f7374796c653d666f722d7468652d6261646765266c6162656c3d4d696e25323070485025323056657273696f6e266c6162656c436f6c6f723d25323330303030303026636f6c6f723d253233303062383966)](https://camo.githubusercontent.com/0c28c0ab9812fcad5d872230387e2057710e41e52fdbf3e1e3f3dbe5a920fe8e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f382e785f616e645f75702d6c735f76657273696f6e3f7374796c653d666f722d7468652d6261646765266c6162656c3d4d696e25323070485025323056657273696f6e266c6162656c436f6c6f723d25323330303030303026636f6c6f723d253233303062383966)[![Static Badge](https://camo.githubusercontent.com/eca52ee47becbe11c532733d2e629e8e02a5cbee7e938d6df644ef912c21a85a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d49542d6c735f6c6963656e63653f7374796c653d666f722d7468652d6261646765266c6162656c3d4c6963656e6365266c6162656c436f6c6f723d25323330303030303026636f6c6f723d253233663163373030)](https://camo.githubusercontent.com/eca52ee47becbe11c532733d2e629e8e02a5cbee7e938d6df644ef912c21a85a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d49542d6c735f6c6963656e63653f7374796c653d666f722d7468652d6261646765266c6162656c3d4c6963656e6365266c6162656c436f6c6f723d25323330303030303026636f6c6f723d253233663163373030)[![Static Badge](https://camo.githubusercontent.com/225570568fadf2bba648c807e3a9a33abf5d1720b9cd34455a714e9d9a47663c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f616e616e6461657264697479612d6c735f617574686f723f7374796c653d666f722d7468652d6261646765266c6162656c3d417574686f72266c6162656c436f6c6f723d25323330303030303026636f6c6f723d253233326463646432)](https://camo.githubusercontent.com/225570568fadf2bba648c807e3a9a33abf5d1720b9cd34455a714e9d9a47663c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f616e616e6461657264697479612d6c735f617574686f723f7374796c653d666f722d7468652d6261646765266c6162656c3d417574686f72266c6162656c436f6c6f723d25323330303030303026636f6c6f723d253233326463646432)

### Description

[](#description)

Dotls, a PHP package for convert a `.ls` configuration file into readable config array.

### Package Description

[](#package-description)

- Package Name : dotls
- Author : [Ananda Erditya ( anandaerditya )](https://github.com/anandaerditya)
- Github URL :
- Language : PHP
- Licence : MIT

### Requirements

[](#requirements)

- PHP Version 8.0 or higher
- PHP fileinfo extension

### Installing Package

[](#installing-package)

Use the following command to install the package via Composer Dependency Manager.

```
composer require anandaerditya/dotls

```

### Using The Package

[](#using-the-package)

1. #### Create your `.ls` configuration file.

    [](#create-your-ls-configuration-file)

    You can create your own `.ls` file to any directory inside your project. Make sure your `.ls`file
    contains at least one pair syntax as follows :

    ```
    foo:value
    foo_bar:value

    ```
2. #### Register `.ls` configuration file.

    [](#register-ls-configuration-file)

    Register your `.ls` file using `register()` method as follows :

    ```
     $dotls = ( new Dotls() )->register('path/to/your/.ls');

    ```
3. #### Using your `.ls` configuration file

    [](#using-your-ls-configuration-file)

    Use `ls()` method to load your configuration into your project as follows :

    ```
     ls('foo');
     ls('foo_bar');

    ```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

964d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f0392ff72144aa5855fc72c78a34a7fa7eff08a556c5d603d8c80747aa1a88ee?d=identicon)[anandaerditya](/maintainers/anandaerditya)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/anandaerditya-dotls/health.svg)

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

PHPackages © 2026

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