Download the PHP package justdev/jd-support without Composer
On this page you can find all versions of the php package justdev/jd-support. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download justdev/jd-support
More information about justdev/jd-support
Files in justdev/jd-support
Download justdev/jd-support
More information about justdev/jd-support
Files in justdev/jd-support
Vendor justdev
Package jd-support
Short Description justDev Support Plugin with modern architecture
License GPL-2.0+
Package jd-support
Short Description justDev Support Plugin with modern architecture
License GPL-2.0+
Please rate this library. Is it a good library?
Informations about the package jd-support
justDev Support Plugin - Modern Architecture
Overview
This plugin has been completely redesigned using modern development principles and architectural patterns.
New Architecture
Project Structure
Key Improvements
1. Dependency Injection Container
- Centralized dependency management
- Automatic service instance creation
- Easy testing and extensibility
2. Service Layer Pattern
- Separation of business logic into separate services
- Each service is responsible for specific functionality
- Easy code reuse
3. MVC Architecture
- Controllers for request handling
- Views for data display
- Models (services) for business logic
4. Configuration Management
- Centralized settings management
- Typed methods for configuration work
- Automatic settings validation
5. Hook Management
- Structured WordPress hook management
- Automatic registration of all hooks
- Easy addition of new hooks
Installation and Usage
Requirements
- PHP 7.4+
- WordPress 5.0+
Installation
Via Composer (recommended)
-
Add the repository (if private) and require the package:
- Copy
stubs/jd-support-mu-loader.phptowp-content/mu-plugins/jd-support.php(or symlink it) so WordPress loads the vendor package. - Run
composer install(orcomposer update) to ensure the package lives invendor/justdev/jd-support. - Configure options in the "j|D Support" section of the admin area.
Manual (legacy)
- Copy this repository into
wp-content/mu-plugins/jd-support/. - Ensure
jd-support.phpis present directly in that folder. - Configure options in the "j|D Support" section.
Development
Adding a new service
Adding a new controller
Testing
Running tests
Code checking
Migration from old version
Main changes
- File structure: Completely redesigned
- Namespace: PSR-4 autoloading used
- Dependency Injection: Dependency container implemented
- Service Layer: Business logic separated into services
- Configuration: Centralized settings management
Compatibility
- All existing settings are preserved
- Hook API remains compatible
- Functionality unchanged
Advantages of new architecture
1. Maintainability
- Clear separation of responsibilities
- Easy understanding of code structure
- Simple addition of new features
2. Testability
- Each component can be tested separately
- Dependency Injection simplifies mocking
- Automated tests
3. Extensibility
- Easy addition of new services
- Modular architecture
- Component reuse
4. Performance
- Loading only necessary classes
- Optimized dependency container
- Configuration caching
License
GPL-2.0+
Author
Kyrylo Dorozhynskyi | justDev
All versions of jd-support with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package justdev/jd-support contains the following files
Loading the files please wait ...