nerbiz/wordclass
Composer 安装命令:
composer require nerbiz/wordclass
包简介
Making programming with WordPress easier and more fun
README 文档
README
Making programming with WordPress easier and more fun.
I created this, because I got confused with a number of WordPress functions, that either look too similar, have an unreasonable amount of parameters, or are unnecessarily difficult to work with. And I didn't want to always search for the names of hooks.
Installation
WordClass requires PHP 8 and can be installed with Composer:
composer require nerbiz/wordclass
Wiki
Please note:
The Wiki pages are outdated (version 3). They will be updated, or maybe the examples are sufficient. Either way, they're not entirely accurate anymore.
Usage
All features are shown and documented in the example files directory.
It's always a good practice to use a prefix in your code, to avoid naming conflicts with WordPress, themes or plugins. WordClass therefore uses a prefix for many things, like options or post type names, with xyz as the default.
Please set your prefix first, because changing it later requires you to rename values in the database as well.
use Nerbiz\WordClass\Init; use Nerbiz\WordClass\Options; // Set your prefix ('xyz' is default) Init::setPrefix('abc'); // Example usage, this option will be stored as 'abc_option_name' Options::set('option_name', 'option_value');
Problems
If you encounter any problem, please add an issue.
Contributing
If you want to translate, or have some ideas about expanding or improving this project, I'm open for suggestions and pull requests.
nerbiz/wordclass 适用场景与选型建议
nerbiz/wordclass 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 303 次下载、GitHub Stars 达 4, 最近一次更新时间为 2017 年 03 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 nerbiz/wordclass 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nerbiz/wordclass 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 303
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-03-16