PHPackages                             hjbdev/laravel-credential-files - 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. hjbdev/laravel-credential-files

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

hjbdev/laravel-credential-files
===============================

Helper for storing encrypted credentials in files.

03PHP

Since Jul 20Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Helper for storing encrypted credentials in files.
==================================================

[](#helper-for-storing-encrypted-credentials-in-files)

[![Latest Version on Packagist](https://camo.githubusercontent.com/49be1dc684742c6eb36664758993c7995068ea6629e54aee7e710c9dfcc29b56/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f686a626465762f6c61726176656c2d63726564656e7469616c2d66696c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hjbdev/laravel-credential-files)[![GitHub Tests Action Status](https://camo.githubusercontent.com/6d67c3f96ff607afecdd4eef5b73f182b3d359e081f38365e5221eafaa5ec78e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f686a626465762f6c61726176656c2d63726564656e7469616c2d66696c65732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/hjbdev/laravel-credential-files/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/a7fbf84ae134c92f8432750f5b5fc17ed9e33fd359b611aee1ea3b26da90ab8c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f686a626465762f6c61726176656c2d63726564656e7469616c2d66696c65732f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/hjbdev/laravel-credential-files/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/9e04428a7ae2a779bd2b15165b5460c933f68ecad3fe16390aecbc035677f509/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f686a626465762f6c61726176656c2d63726564656e7469616c2d66696c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hjbdev/laravel-credential-files)

A simple way to securely store data in your Laravel app.

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

[](#installation)

You can install the package via composer:

```
composer require hjbdev/laravel-credential-files
```

Usage
-----

[](#usage)

```
$credentials = new CredentialFiles();

$credentials->set('foo', 'bar');
$credentials->get('foo'); // 'bar'

$credentials->foo = 'bonk';
$credentials->foo; // 'bonk'

$credentials->foo('baa');
$credentails->foo(); // 'baa'

$credentials->delete('foo');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/hjbdev/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Harry Bayliss (hjbdev)](https://github.com/hjbdev)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/42136c99644c6b8a8ea177aece5eb5120768caf367613394ad3d7d17a01662c6?d=identicon)[hjbdev](/maintainers/hjbdev)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/hjbdev-laravel-credential-files/health.svg)

```
[![Health](https://phpackages.com/badges/hjbdev-laravel-credential-files/health.svg)](https://phpackages.com/packages/hjbdev-laravel-credential-files)
```

###  Alternatives

[apen/additional_reports

Useful information in the reports module : xclass, ajax, cliKeys, eID, general status of the system (encoding, DB, php vars...), hooks, compare local and TER extension (diff), used content type, used plugins, ExtDirect... It can really help you during migration or new existing project (to have a global reports of the system).

14157.8k](/packages/apen-additional-reports)

PHPackages © 2026

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