insurance-core / helpers
Utility helpers package for Laravel applications
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/insurance-core/helpers
Requires
- php: ^8.1|^8.2|^8.3
- guzzlehttp/guzzle: ^7.0
- illuminate/cache: ^9.0|^10.0|^11.0|^12.0
- illuminate/config: ^9.0|^10.0|^11.0|^12.0
- illuminate/console: ^9.0|^10.0|^11.0|^12.0
- illuminate/database: ^9.0|^10.0|^11.0|^12.0
- illuminate/filesystem: ^9.0|^10.0|^11.0|^12.0
- illuminate/http: ^9.0|^10.0|^11.0|^12.0
- illuminate/pipeline: ^9.0|^10.0|^11.0|^12.0
- illuminate/support: ^9.0|^10.0|^11.0|^12.0
- symfony/http-foundation: ^6.0|^7.0
Requires (Dev)
- orchestra/testbench: ^7.0|^8.0
- phpunit/phpunit: ^9.0|^10.0
- dev-master
- v4.3.4
- v4.3.3
- v4.3.2
- v4.3.1
- v4.3.0
- v4.2.0
- v4.1.9
- v4.1.8
- v4.1.7
- v4.1.6
- v4.1.5
- v4.1.4
- v4.1.3
- v4.1.1
- v4.1.0
- v4.0.8
- v4.0.7
- v4.0.6
- v4.0.5
- v4.0.4
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- v3.3.0
- v3.2.0
- v3.1.0
- v3.0.0
- v2.1.0
- v2.0.0
- v1.2.1
- v1.2.0
- v1.1.8
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.1
- v1.0.0
- dev-main
This package is auto-updated.
Last update: 2025-12-26 09:53:21 UTC
README
Utility helpers package for Laravel applications.
A comprehensive collection of utility helpers and tools for Laravel applications, providing essential functionality for development and deployment.
🎯 Key Features
✅ Seamless Integration: Easy to integrate with existing Laravel projects
✅ System Validation: Built-in system validation and configuration checks
✅ Domain Whitelisting: Supports domain whitelisting with wildcard patterns (e.g., *.example.com)
✅ Deployment Tools: Helpful utilities for deployment and environment management
✅ Cache Management: Efficient cache handling and optimization
✅ System Monitoring: Built-in status checking and diagnostics
✅ Configuration Management: Centralized configuration management
🚀 Quick Installation
# Install package composer require insurance-core/helpers # Publish configuration php artisan vendor:publish --provider="InsuranceCore\Utils\UtilsServiceProvider" --tag=config # Check system status php artisan utils:info
📝 Configuration
Required (for production/staging after grace period)
Add these to your .env file for full validation:
# REQUIRED: Get these from your license server UTILS_KEY=your_system_key # System key from license server UTILS_PRODUCT_ID=your_product_id # Product identifier UTILS_CLIENT_ID=your_client_id # Client identifier UTILS_API_TOKEN=your_secure_api_token # API token for server communication
Optional (has defaults)
# OPTIONAL: Server URL (has default) UTILS_SERVER=https://your-server.com/api # Default: https://license.acecoderz.com/ # OPTIONAL: Cryptographic secret (falls back to APP_KEY) UTILS_SECRET=your_cryptographic_secret_key # For key generation/validation checksums
Getting Your System Key
-
Run the info command to get your system identifiers:
php artisan utils:info
This will show:
- Hardware fingerprint
- Installation ID
- System identifiers
-
Generate system key from your license server using:
- Hardware fingerprint
- Domain
- Product ID
- Client ID
-
Add to
.envfile and restart your application
Fresh Installation
- Local/Dev: No configuration needed (always allowed)
- Production/Staging: 7-day grace period (app works without config)
- After grace period: Configuration required for full validation
🔧 Management Commands
System Information
utils:info- Show system information and hardware fingerprintutils:diagnose- Diagnose system configuration issuesutils:test- Test system functionality
Key Management
utils:generate-key- Generate a system key for the application
Deployment
utils:deployment- Help troubleshoot and fix system issues during deployment--check- Check current deployment status--fix- Attempt to fix deployment issues--regenerate- Force regenerate hardware fingerprint--test- Test system after fixes
Utilities
utils:clear-cache- Clear system cacheutils:optimize- Optimize system performanceutils:audit- Comprehensive system assessment
📋 Usage Examples
Check System Status
php artisan utils:info
Diagnose Issues
php artisan utils:diagnose --fix
Generate System Key
# First, get your hardware fingerprint php artisan utils:info # Then generate key php artisan utils:generate-key \ --product-id=YOUR_PRODUCT_ID \ --domain=example.com \ --ip=192.168.1.1 \ --client-id=YOUR_CLIENT_ID \ --hardware-fingerprint=YOUR_FINGERPRINT \ --installation-id=YOUR_INSTALLATION_ID
Deployment Helper
# Check deployment status php artisan utils:deployment --check # Fix deployment issues php artisan utils:deployment --fix # Regenerate hardware fingerprint php artisan utils:deployment --regenerate
🔐 Security
This package includes built-in security features:
- Hardware fingerprinting for installation tracking
- Secure key generation and validation
- Configuration encryption support
- System integrity monitoring
📦 Requirements
- PHP 8.1 or higher
- Laravel 9.0 or higher
- Composer
🤝 Support
For support, email support@insurancecore.com or visit https://github.com/Sudhir-Pratap/insurance-core
📄 License
This package is open-sourced software licensed under the MIT license.
🔄 Version History
See CHANGELOG.md for version history and updates.
Note: This package is designed to work seamlessly with your Laravel application. All configuration is optional and the package will work with sensible defaults.