inzamam / selise-block-authorization
selise blocks authorization system for Laravel, including token management and secure authentication logic.
v0.2.1
2025-05-21 06:32 UTC
Requires
- php: >=8.1
README
You can install the package via composer:
composer require inzamam/selise-block-authorization
⚙️ Configuration
To publish the config file:
php artisan vendor:publish --tag=selise-block-authorization-config
This will publish the config file to:
config/selise-block-authorization.php
.env
setting
Setup the environment variables in your .env:
BLOCK_API_URL=https://your-api-url.com BLOCK_API_ORIGIN=https://your-origin.com BLOCK_USER=your-user BLOCK_PASSWORD=your-password BLOCK_CLIENT_ID=your-client-id BLOCK_API_VERSION=v1
🧩 Migrations
To publish the migration for block_access_tokens and block_api_logs:
php artisan vendor:publish --tag=selise-block-authorization-migrations php artisan migrate
Or publish everything (config + migrations) at once:
php artisan vendor:publish --tag=selise-block-authorization php artisan migrate
🚀 Usage
Use the facade or bound service to retrieve and store access tokens:
use SeliseBlockAuthService; $token = SeliseBlockAuthService::getAccessToken(); echo $token;
🧑💻 Author
Inzamamul Karim inzamamul.karim@selisegroup.com
📄 License
This package is open-sourced software licensed under the MIT license