wp-settings-framework/composer.json
owaisahmed5300 270787dd37 fix: repair data handling and resolve tab data loss
This commit resolves critical bugs in data handling and saving. The
public `get()` method and the tabbed saving mechanism are now reliable.

1.  **Corrected `get()` Method:** The internal logic of the `get()` method
    has been completely rewritten. It was previously non-functional and
    now correctly fetches saved option values from the database, with proper
    fallbacks to default values.

2.  **Tabbed Saving Fix:** A data loss bug on tabbed pages is resolved.
    The `Sanitizer` is now state-aware, merging new input with existing
    saved options to ensure settings on other tabs are preserved.

These fixes were made possible by a complete internal refactoring,
which introduced a new `Config` class for state management and enforced
proper dependency injection throughout the framework.
2025-08-13 01:08:30 +05:00

48 lines
1.1 KiB
JSON

{
"name": "wptechnix/wp-settings-framework",
"version": "1.0.0",
"description": "A modern, fluent, and object-oriented framework for creating powerful WordPress admin settings pages.",
"type": "library",
"license": "MIT",
"keywords": [
"wordpress",
"settings",
"options"
],
"authors": [
{
"name": "WPTechnix",
"email": "developers@wptechnix.com"
}
],
"minimum-stability": "stable",
"prefer-stable": true,
"require": {
"php": ">=8.0"
},
"require-dev": {
"phpcompatibility/php-compatibility": "*",
"phpstan/phpstan": "^2.1",
"phpstan/phpstan-strict-rules": "^2.0",
"squizlabs/php_codesniffer": "^3",
"szepeviktor/phpstan-wordpress": "^2.0"
},
"autoload": {
"psr-4": {
"WPTechnix\\WPSettings\\": "src/"
}
},
"scripts": {
"fix:phpcbf": "vendor/bin/phpcbf || true",
"lint:phpcs": "vendor/bin/phpcs --report=full",
"lint:phpstan": "vendor/bin/phpstan analyse --memory-limit=2G --error-format=table",
"lint": [
"@fix:phpcbf",
"@lint:phpcs",
"@lint:phpstan"
]
},
"config": {
"sort-packages": true
}
}