Download the PHP package cleaniquecoders/token-vault without Composer
On this page you can find all versions of the php package cleaniquecoders/token-vault. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cleaniquecoders/token-vault
More information about cleaniquecoders/token-vault
Files in cleaniquecoders/token-vault
Package token-vault
Short Description A secure and extensible token manager for Laravel, designed to store, encrypt, and validate tokens or API keys from services like GitHub, GitLab, etc.
License MIT
Homepage https://github.com/cleaniquecoders/token-vault
Informations about the package token-vault
Laravel Token Vault
A secure and extensible token manager for Laravel, designed to store, encrypt, and decrypt tokens or API keys. This is useful when you are building an application that require to store sensitive information.
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
Hereβs the updated Usage guide for your TokenVault
package, incorporating the Provider
enum and clarifying token types:
β Usage
π§© Setup Model
To allow a model (e.g. User
) to have tokens:
π Storing a Token
π Decrypting a Token (when needed)
β οΈ Only use this when absolutely necessary β avoid exposing raw tokens.
ποΈ Token Masking (Safe Display)
Use this for logs, audit trails, or safe UI display.
π Retrieve Tokens by Provider
π§Ή Cleaning Expired Tokens
Encryption Drivers (Optional)
To use a custom encryption method:
And the class need to implements the \CleaniqueCoders\TokenVault\Contracts\Encryptor
interface.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Nasrul Hazim Bin Mohamad
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of token-vault with dependencies
cleaniquecoders/traitify Version ^1.1
illuminate/contracts Version ^10.0||^11.0||^12.0
spatie/laravel-package-tools Version ^1.16