Download the PHP package mcrm/laravel-connection-storage without Composer
On this page you can find all versions of the php package mcrm/laravel-connection-storage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mcrm/laravel-connection-storage
More information about mcrm/laravel-connection-storage
Files in mcrm/laravel-connection-storage
Package laravel-connection-storage
Short Description Flexible Laravel package for managing external database connections with Redis cache and HTTP API fallback. Supports customizable DTOs and multiple connection types for microservices architecture.
License MIT
Informations about the package laravel-connection-storage
Laravel Connection Storage
Flexible Laravel package for managing external database connections with Redis cache and HTTP API fallback. Supports customizable DTOs and multiple connection types for microservices architecture.
Features
- ✅ Redis Caching - automatic connection data caching
- ✅ HTTP API Integration - external API data retrieval
- ✅ Connection Validation - database availability checks
- ✅ Notification System - automatic error notifications
- ✅ Connection Blocking - temporary blocking after failures
- ✅ Flexible DTOs - customizable data classes for different projects
- ✅ Multi-service Architecture - service-specific data extraction support
Installation
1. Install Package
2. Publish Configuration (REQUIRED)
This command will copy the configuration file to config/connection-storage.php in your project.
3. Environment Variables Setup
Add to your .env file:
Basic Usage
Getting Connection Data
Manual Data Caching
Creating Custom DTO
1. Create Your DTO Class
2. Update Configuration
In config/connection-storage.php:
Data Architecture
External API Data Format
The package expects the external API to return data in the following format:
The package will automatically extract data for your service based on CONNECTION_STORAGE_SERVICE_KEY.
Validation and Notifications
Automatic Validation
The package automatically checks:
- Database connection availability
- Database existence
On errors:
- HTTP notifications are sent to
CONNECTION_STORAGE_NOTIFICATION_URL - Connection is temporarily blocked for
CONNECTION_STORAGE_BLOCK_DURATION
Disabling Validation
Interfaces
ConnectionDataProviderInterface
Main interface for working with connection data:
ConnectionCacheServiceInterface
Interface for cache operations:
License
MIT License
Support
For questions and support, contact the MCRM development team.
All versions of laravel-connection-storage with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/cache Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/log Version ^10.0|^11.0|^12.0
illuminate/config Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0