PHPackages                             justdev/jd-support - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. justdev/jd-support

ActiveWordpress-muplugin[Utility &amp; Helpers](/categories/utility)

justdev/jd-support
==================

justDev Support Plugin with modern architecture

2.1.4(3mo ago)11251GPL-2.0+PHPPHP &gt;=7.4

Since Nov 6Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/kirilldorozhynskyi/jd-support)[ Packagist](https://packagist.org/packages/justdev/jd-support)[ RSS](/packages/justdev-jd-support/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (21)Used By (1)

justDev Support Plugin - Modern Architecture
============================================

[](#justdev-support-plugin---modern-architecture)

Overview
--------

[](#overview)

This plugin has been completely redesigned using modern development principles and architectural patterns.

New Architecture
----------------

[](#new-architecture)

### Project Structure

[](#project-structure)

```
src/
├── Core/                    # Plugin core
│   ├── Plugin.php          # Main plugin class
│   ├── Container/          # Dependency Injection
│   │   └── Container.php
│   ├── Config/             # Configuration management
│   │   └── ConfigManager.php
│   └── Hooks/              # Hook management
│       └── HookManager.php
├── Services/               # Business logic
│   ├── SecurityService.php
│   ├── AdminService.php
│   ├── CacheService.php
│   ├── SvgService.php
│   └── VersionService.php
├── Admin/                  # Administrative part
│   ├── AdminManager.php
│   └── Controllers/
│       ├── SettingsController.php
│       └── AssetsController.php
├── Public/                 # Public part
│   ├── PublicManager.php
│   └── Controllers/
│       └── AssetsController.php
└── Views/                  # Views
    └── settings-page.php

```

### Key Improvements

[](#key-improvements)

#### 1. Dependency Injection Container

[](#1-dependency-injection-container)

- Centralized dependency management
- Automatic service instance creation
- Easy testing and extensibility

#### 2. Service Layer Pattern

[](#2-service-layer-pattern)

- Separation of business logic into separate services
- Each service is responsible for specific functionality
- Easy code reuse

#### 3. MVC Architecture

[](#3-mvc-architecture)

- Controllers for request handling
- Views for data display
- Models (services) for business logic

#### 4. Configuration Management

[](#4-configuration-management)

- Centralized settings management
- Typed methods for configuration work
- Automatic settings validation

#### 5. Hook Management

[](#5-hook-management)

- Structured WordPress hook management
- Automatic registration of all hooks
- Easy addition of new hooks

Installation and Usage
----------------------

[](#installation-and-usage)

### Requirements

[](#requirements)

- PHP 7.4+
- WordPress 5.0+

### Installation

[](#installation)

#### Via Composer (recommended)

[](#via-composer-recommended)

1. Add the repository (if private) and require the package: ```
    composer require justdev/jd-support:"^2.1"
    ```
2. Copy `stubs/jd-support-mu-loader.php` to `wp-content/mu-plugins/jd-support.php` (or symlink it) so WordPress loads the vendor package.
3. Run `composer install` (or `composer update`) to ensure the package lives in `vendor/justdev/jd-support`.
4. Configure options in the "j|D Support" section of the admin area.

#### Manual (legacy)

[](#manual-legacy)

1. Copy this repository into `wp-content/mu-plugins/jd-support/`.
2. Ensure `jd-support.php` is present directly in that folder.
3. Configure options in the "j|D Support" section.

### Development

[](#development)

#### Adding a new service

[](#adding-a-new-service)

```
// 1. Create service in src/Services/
class NewService
{
    public function __construct(Container $container)
    {
        $this->config = $container->get('config');
    }

    public function doSomething()
    {
        // Your logic
    }
}

// 2. Register in Container.php
$this->register('new', NewService::class);

// 3. Use in HookManager.php
$this->addAction('hook_name', [$this->container->get('new'), 'doSomething']);
```

#### Adding a new controller

[](#adding-a-new-controller)

```
// 1. Create controller in src/Admin/Controllers/
class NewController
{
    public function registerHooks()
    {
        add_action('admin_menu', [$this, 'addMenuPage']);
    }
}

// 2. Add to AdminManager.php
$this->newController = new NewController($this->container);
$this->newController->registerHooks();
```

Testing
-------

[](#testing)

### Running tests

[](#running-tests)

```
composer test
```

### Code checking

[](#code-checking)

```
composer phpcs    # Code style check
composer phpstan  # Static analysis
composer fix      # Auto-fix style
```

Migration from old version
--------------------------

[](#migration-from-old-version)

### Main changes

[](#main-changes)

1. **File structure**: Completely redesigned
2. **Namespace**: PSR-4 autoloading used
3. **Dependency Injection**: Dependency container implemented
4. **Service Layer**: Business logic separated into services
5. **Configuration**: Centralized settings management

### Compatibility

[](#compatibility)

- All existing settings are preserved
- Hook API remains compatible
- Functionality unchanged

Advantages of new architecture
------------------------------

[](#advantages-of-new-architecture)

### 1. Maintainability

[](#1-maintainability)

- Clear separation of responsibilities
- Easy understanding of code structure
- Simple addition of new features

### 2. Testability

[](#2-testability)

- Each component can be tested separately
- Dependency Injection simplifies mocking
- Automated tests

### 3. Extensibility

[](#3-extensibility)

- Easy addition of new services
- Modular architecture
- Component reuse

### 4. Performance

[](#4-performance)

- Loading only necessary classes
- Optimized dependency container
- Configuration caching

License
-------

[](#license)

GPL-2.0+

Author
------

[](#author)

Kyrylo Dorozhynskyi | justDev

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance81

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~45 days

Recently: every ~33 days

Total

19

Last Release

100d ago

Major Versions

0.0.4 → 1.1.12024-02-08

1.1.8 → 2.0.02025-07-23

PHP version history (2 changes)0.0.2PHP ^7.2.5 || ^8.0

2.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/48883cff03a899c6a325b86708b00bf9235a94ae4d601965e80171d09927bf60?d=identicon)[kirilldorozhynskyi](/maintainers/kirilldorozhynskyi)

---

Top Contributors

[![kirilldorozhynskyi](https://avatars.githubusercontent.com/u/75448126?v=4)](https://github.com/kirilldorozhynskyi "kirilldorozhynskyi (70 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/justdev-jd-support/health.svg)

```
[![Health](https://phpackages.com/badges/justdev-jd-support/health.svg)](https://phpackages.com/packages/justdev-jd-support)
```

###  Alternatives

[barttyrant/php_genderize

Genderize.io handler for PHP

24100.0k1](/packages/barttyrant-php-genderize)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
