Download the PHP package ahs12/laravel-setanjo without Composer
On this page you can find all versions of the php package ahs12/laravel-setanjo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ahs12/laravel-setanjo
More information about ahs12/laravel-setanjo
Files in ahs12/laravel-setanjo
Package laravel-setanjo
Short Description Laravel settings package for managing application configurations, user preferences, feature flags, and A/B testing with multi-tenant support
License MIT
Homepage https://github.com/ahs12/laravel-setanjo
Informations about the package laravel-setanjo
laravel-setanjo - Laravel Settings Package with Multi-Tenant Support
A powerful Laravel package for managing application settings and configurations. Store global application settings or model-specific configurations (user preferences, company settings, etc.) with automatic type casting, caching, and a clean API. Perfect for feature flags, A/B testing, user preferences, and dynamic configuration management.
Note: This package does not provide multi-tenancy features for your application. However, if your Laravel project already has multi-tenancy implemented, this package can store tenant-specific settings alongside your existing tenant architecture.
Features
- ๐ข Multi-Tenant Ready: Works with existing multi-tenant applications
- ๐๏ธ Model-Specific Settings: Store settings for any Eloquent model (User, Company, etc.)
- ๐๏ธ Global Settings: Application-wide settings without model scope
- โก Caching: Optional caching with configurable cache store
- ๐ Validation: Validate models and prevent unauthorized access
- ๐ฆ Clean API: Simple, intuitive API for setting and retrieving values
- ๐งช Fully Tested: Comprehensive test suite included
- โ Type Safety: Automatic type detection and conversion
Requirements
- PHP 8.2 or higher
- Laravel 10.0 or higher
Installation
-
Install the package:
-
Publish and run migrations:
- Configure tenancy mode (optional):
By default, the package runs in strict mode (single tenant model type).
For basic setup with User model, no configuration needed. For other models or multiple tenant types:
Quick Setup
Option 1: Strict Mode (Default - Single Tenant Type)
Perfect for simple user preferences or single-model tenancy:
Option 2: Custom Strict Mode
For using a different model as the single tenant type:
Option 3: Polymorphic Mode
For multiple tenant model types (SaaS apps, complex multi-tenancy):
Basic Usage
Global Settings
Tenant Settings (Strict Mode)
Tenant Settings (Polymorphic Mode)
Type Casting
Common Use Cases
User Preferences
Application Configuration
Multi-Tenant SaaS (Polymorphic Mode)
Documentation
For detailed documentation, advanced usage, and configuration options, visit our documentation site.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-setanjo with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^12.0||^13.0