calm-canvas/archetype-theme-kit
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
calm-canvas/archetype-theme-kit 适用场景与选型建议
calm-canvas/archetype-theme-kit 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 calm-canvas/archetype-theme-kit 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 calm-canvas/archetype-theme-kit 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2025-12-25