承接 hsm/wplite 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hsm/wplite

最新稳定版本:v1.0.4

Composer 安装命令:

composer require hsm/wplite

包简介

WPLite WordPress Framework

README 文档

README

WPLite is a lightweight PHP framework designed to simplify WordPress plugin and application development. It provides a modular architecture, dependency injection, routing, middleware, and other modern features for building scalable WordPress solutions.

Features

  • Modular structure with service providers
  • Dependency injection container
  • Routing and middleware support
  • Facades for common services
  • Database abstraction
  • Authentication and guards
  • Resource and view management

Directory Structure

composer.json           # Composer dependencies and autoloading
src/
   wplite-sample.php     # Sample plugin main file (not entry point)
  WPLite/
    Application.php     # Core application class
    Config.php          # Configuration management
    Container.php       # Dependency injection container
    DB.php              # Database abstraction
    ...                 # Other core classes
    Adapters/           # Adapter pattern implementations
    Auth/               # Authentication and guards
    Contracts/          # Interfaces and contracts
    Facades/            # Facade classes for services
    Helpers/            # Helper functions
    Middlewares/        # Middleware implementations
    Providers/          # Service providers
vendor/                 # Composer dependencies

Getting Started

  1. Install dependencies:
    composer install
  2. Using WPLite in your plugin: Refer to src/wplite-sample.php for an example of how to use WPLite in your own WordPress plugin main file. This file demonstrates how to bootstrap and run the WPLite application within a plugin context. It is not the entry point of the package itself.
  3. Configuration: Edit src/WPLite/Config.php or provide your own config files as needed.
  4. Extend functionality:
    • Define your routes in src/routes (recommended)
    • Register new service providers
    • Implement custom middleware, models, and views

Contributing

Pull requests and issues are welcome! Please follow PSR standards and write tests for new features.

License

See vendor/LICENSE for details.

统计信息

  • 总下载量: 21
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-20