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

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

crcms/file-config
=================

file config put and read

0.0.7(8y ago)21.1k1MITPHPPHP &gt;=7.0

Since Jun 23Pushed 8y agoCompare

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

READMEChangelogDependencies (1)Versions (8)Used By (0)

file-config
===========

[](#file-config)

Sets the storage format of the configuration file

Example
-------

[](#example)

update file\_config.php

```
'files'=>[
    /tmp/crcms,
    // Set up other parsing drivers
    /tmp/crcms => \CrCms\FileConfig\Drives\SerializeConfig::class,

],

'default_drive'=>\CrCms\FileConfig\Drives\DefaultConfig::class,

```

put

```
file_config([
    crcms.a=>'a',
    crcms.b=>'b'
])

//or

file_config()->put('crcms.a',['k'=>'k','s'=>'s'])

```

get

```
file_config('crcms.a')

```

all

```
file_config('crcms')

```

destroy

```
file_config()->destroy('crcms.a')

```

0.0.2 above the new load method

```
Example test.php
key1=>value1
key2=>value2

//get all
file_config()->load('/path/test.conf')->all('test')

```

0.0.3 Add multiple dot depth support

file\_config()-&gt;load('/path/test.conf')-&gt;get('test.depth1.depth2.0')

0.0.4 Overwrite all configurations

```
file_config(['crcms'=>[1,2,3]])

//or

file_config()->put('crcms',['key'=>[1,'value']])

```

Install
-------

[](#install)

You can install the package via composer:

```
composer require crcms/file-config

```

Laravel
-------

[](#laravel)

Modify `config / app.php`

```
'providers' => [
    CrCms\FileConfig\FileConfigServiceProvider::class,
]

'aliases' => [
    'FileConfig' => \CrCms\FileConfig\Facades\FileConfig::class
],

```

If you'd like to make configuration changes in the configuration file you can pubish it with the following Aritsan command:

```
php artisan vendor:publish --provider="CrCms\FileConfig\FileConfigServiceProvider"

```

Laravel Testing
---------------

[](#laravel-testing)

```
phpunit ./tests/Config

```

License
-------

[](#license)

MIT

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Recently: every ~57 days

Total

7

Last Release

2941d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d399a94699f3b91de6be249975ed2dee389fe10d3975518f420143ded5762fd?d=identicon)[hiword](/maintainers/hiword)

---

Tags

phpconfigfile

### Embed Badge

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

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

###  Alternatives

[soarecostin/file-vault

192195.0k](/packages/soarecostin-file-vault)[blueimp/jquery-file-upload

File Upload widget for jQuery.

141.5M18](/packages/blueimp-jquery-file-upload)[brainstud/file-vault

1231.6k](/packages/brainstud-file-vault)

PHPackages © 2026

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