https://github.com/hjbdev/laravel-credential-files
Package for storing encrypted credentials to a file
https://github.com/hjbdev/laravel-credential-files
Last synced: 4 months ago
JSON representation
Package for storing encrypted credentials to a file
- Host: GitHub
- URL: https://github.com/hjbdev/laravel-credential-files
- Owner: hjbdev
- License: mit
- Created: 2022-07-15T13:07:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-20T12:54:10.000Z (almost 4 years ago)
- Last Synced: 2026-01-24T09:49:56.148Z (4 months ago)
- Language: PHP
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Helper for storing encrypted credentials in files.
[](https://packagist.org/packages/hjbdev/laravel-credential-files)
[](https://github.com/hjbdev/laravel-credential-files/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://github.com/hjbdev/laravel-credential-files/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
[](https://packagist.org/packages/hjbdev/laravel-credential-files)
A simple way to securely store data in your Laravel app.
## Installation
You can install the package via composer:
```bash
composer require hjbdev/laravel-credential-files
```
## Usage
```php
$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
```bash
composer test
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](https://github.com/hjbdev/.github/blob/main/CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Harry Bayliss (hjbdev)](https://github.com/hjbdev)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.