Custom API Plugin Enterprise DI
Enterprise WordPress plugin with custom REST API CRUD, PSR-4 autoloading, dependency injection, and custom database tables.
by hemantkmallick · github.com/hemantkmallick/custom-api-plugin
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/hemantkmallick/custom-api-plugin/archive/refs/heads/main.zipReadme
Custom API Plugin (Enterprise WordPress)
An enterprise-level WordPress plugin built with modern PHP architecture.
This plugin provides a custom REST API with full CRUD operations using a custom database table, designed with clean, scalable, and testable code.
🚀 Features
- ✅ Custom REST API endpoints (CRUD)
- ✅ Custom database table (no post types)
- ✅ PSR-4 autoloading using Composer
- ✅ Dependency Injection (DI)
- ✅ Layered architecture:
- Controller
- Service
- Repository
- ✅ Secure permission handling
- ✅ Clean and scalable codebase
🏗️ Architecture
Controller → Service → Repository → Database
- Controller → Handles API requests/responses
- Service → Business logic & validation
- Repository → Database operations
- Schema → Table creation
📦 Installation
- Clone or download the repository
- Place plugin in:wp-content/plugins/
- Run Composer:
composer install