mitoop / laravel-signature
v0.0.1
2025-01-20 06:51 UTC
Requires
- ext-openssl: *
- archtechx/enums: ^1.1
- laravel/framework: ^11
Requires (Dev)
- laravel/pint: ^1.20
README
Laravel Signature is a robust and flexible package for handling API signature validation and generation. It supports multiple signing methods and can be easily extended to fit your application's needs.
Features
- Supports RSA2048-SHA256 and HMAC-SHA256 signature methods.
- Customizable brand prefixes for signatures.
- Provides a flexible resolver interface for fetching application-specific configurations.
- Easily integrates with Laravel's service container.
Installation
Install the package via Composer:
composer require mitoop/laravel-signature
Configuration
Publish the configuration file:
php artisan vendor:publish --tag=config --provider="Mitoop\\LaravelSignature\\ServiceProvider"
This will create a config/signature.php
file. Customize it as needed:
return [ 'brand' => 'XPAY', 'max_clock_offset' => 300, 'http_timeout' => 60, ];