calm-canvas/archetype-theme-kit 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

calm-canvas/archetype-theme-kit

最新稳定版本:v1.0.0

Composer 安装命令:

composer require calm-canvas/archetype-theme-kit

包简介

Archetype-Theme-Kit is a high-performance PHP library for WordPress developers. It provides a standardized foundation of core functions, global constants, and reusable utilities. Designed to streamline theme development, it ensures architectural consistency and clean code across multiple projects.

README 文档

README

Important Note:

  • This library is currently under development. Please exercise caution when installing and using it.
  • This library is specifically designed for WordPress theme development.

A high-performance PHP library designed to streamline WordPress theme development by providing a standardized foundation of core functions, global constants, and reusable utilities.

Introduction

Archetype Theme Kit is a comprehensive toolkit built for WordPress theme developers who prioritize clean code architecture, consistency, and performance. It abstracts common theme development patterns into reusable, well-tested components that can be leveraged across multiple projects. By providing a structured foundation with dependency injection, caching utilities, and internationalization support, Archetype Theme Kit enables developers to focus on building unique theme features rather than reinventing foundational components.

Features

  • Dependency Injection Container - Aura\DI-powered service container for managing dependencies and ensuring loose coupling between components
  • Transient Caching - Built-in cache factory and transient management for optimized performance
  • Comment Utilities - WordPress comment-related utilities and data structures for simplified comment handling
  • Global Constants - Centralized constants for filter hooks, HTML attributes, internationalization, and duration values
  • Helper Functions - Utility classes for BEM CSS naming conventions and data manipulation
  • Internationalization (i18n) - Complete i18n support with Dictionary and Translator implementations for multilingual themes
  • Contract Interfaces - Well-defined interfaces for extensibility (caching, widgets, i18n, helpers)
  • Widget Abstractions - WordPress widget abstractions and streaming widget implementations for simplified widget development
  • Design Patterns - Reusable design patterns including Singleton for common use cases
  • PSR-4 Autoloading - Standard PSR-4 namespace autoloading for seamless integration

Installation

Install via Composer:

composer require calm-canvas/archetype-theme-kit

Then include the Composer autoloader in your WordPress theme:

require_once get_template_directory() . '/vendor/autoload.php';

Usage

Access services through the Engine's static resolver:

use CalmCanvas\ArchetypeThemeKit\Engine;

$service = Engine::resolve('service-name');

Requirements

  • PHP: 7.4 or higher
  • WordPress: Compatible with recent WordPress versions
  • Composer: For dependency management

License

GPL-3.0-or-later

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2025-12-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固