Download the PHP package mbsoft31/settings without Composer
On this page you can find all versions of the php package mbsoft31/settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mbsoft31/settings
More information about mbsoft31/settings
Files in mbsoft31/settings
Package settings
Short Description This is my package settings
License MIT
Homepage https://github.com/mbsoft31/settings
Informations about the package settings
Settings Package for PHP
Introduction
This package provides a simple and extensible way to manage application settings in various formats like JSON and YAML. It's designed to work seamlessly with Laravel and allows saving, loading, and managing configuration settings easily.
Features
- Save and load application settings in JSON or YAML formats.
- Easily extendable for additional formats.
- Works out of the box with Laravel.
- Configurable storage paths.
Installation
Step 1: Install via Composer
You can install the package using Composer:
Step 2: Publish Configuration & Migrations
Publish the migrations and configuration files:
The configuration file (config/settings.php
) will look like this:
Optionally, you can publish views using:
Usage
Example: Save and Load JSON Settings
Here's a quick example of how to use the package to manage your application settings:
Testing
Run the test suite using the following command:
To ensure the directory structure for file-based tests is correctly created during CI or local development, the package includes setup logic in the tests.
Advanced Usage
Supported Formats
Currently, the package supports:
- JSON
- YAML
You can extend the package to support additional formats by adding new serialization and deserialization methods.
Custom Configuration
You can modify the settings.php
config file to define default file paths or application-specific settings.
Contributing
We welcome contributions! Please see the CONTRIBUTING guide for details.
Security Vulnerabilities
If you discover any security-related issues, please report them via the Security Policy.
Changelog
Refer to the CHANGELOG for recent updates.
Credits
- Mouadh Bekhouche
- All Contributors
License
This package is open-source software licensed under the MIT License.
All versions of settings with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0