Download the PHP package skaisser/laravel-lead without Composer
On this page you can find all versions of the php package skaisser/laravel-lead. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-lead
Laravel Lead Persistence
A comprehensive Laravel package for multi-layer lead persistence, webhook integrations, and progressive lead creation. This package provides sophisticated tools for managing leads in your Laravel application with advanced features like encrypted storage, automatic fallbacks, and real-time synchronization.
Features
- 🔄 Multi-layer Lead Persistence: Automatic fallback chain (Redis → Session → Cookies → localStorage)
- 🪝 Webhook Integration: Configurable webhooks with custom field mapping and retry logic
- 📱 Phone Formatting: International phone number formatting with country-specific rules
- 💾 Progressive Lead Creation: Create leads from query parameters before form submission
- 🔐 Encrypted Storage: Secure lead ID encryption across all storage layers
- 🌐 JavaScript Integration: Client-side lead storage with automatic synchronization
- 🔀 Lead Merging: Intelligent merging of lead data from multiple sources
- 📊 UTM Tracking: Automatic capture and storage of marketing parameters
Installation
Install the package via Composer:
Configuration
Publish the configuration file:
This will create a config/lead-persistence.php
file where you can customize the package settings.
Key Configuration Options
Usage
Basic Lead Persistence
Progressive Lead Creation
Webhook Integration
First, publish and run the migrations:
Then use webhooks in your application:
Phone Number Formatting
JavaScript Integration
Publish the JavaScript assets:
Include the script in your layout:
JavaScript API
Livewire Integration
The package automatically integrates with Livewire if available:
Advanced Usage
Custom Lead Model
Create your lead model and configure it:
Update the configuration:
Custom Webhook Model
Extend the base webhook model for custom functionality:
Webhook Transformations
Add custom transformations for webhook data:
Testing
Run the package tests:
Security
- All lead IDs are encrypted by default using Laravel's encryption
- Visitor-isolated caching prevents data leakage between users
- Cookie security follows Laravel's session configuration
- Webhook URLs are validated before requests
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-lead with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/cache Version ^10.0|^11.0|^12.0
illuminate/queue Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
giggsey/libphonenumber-for-php Version ^8.12