moxie-lean/wp-elements
Composer 安装命令:
composer require moxie-lean/wp-elements
包简介
Predefined ACF groups.
关键字:
README 文档
README
Predefined ACF groups like ContactDetails, SocialLinks or Hero. We will be adding more as we need them.
Getting Started
The easiest way to install this package is by using composer from your terminal:
composer require moxie-lean/wp-elements
Or by adding the following lines on your composer.json file
"require": {
"moxie-lean/wp-elements": "dev-master"
}
This will download the files from the packagist site and set you up with the latest version located on master branch of the repository.
After that you can include the autoload.php file in order to
be able to autoload the class during the object creation.
include '/vendor/autoload.php';
Usage
You need to register the elements you want to use using the `Elements::add()` function. This function takes the following parameters: $element and $location.
\Lean\Elements\Register::add(
'SiteIdentity',
$location
);
Note that $location is an array with the format of the ACF 'location' parameter. For some elements $location can be left blank and the default location will be used instead.
There is also a shortcut function to add an options page, with predefined sub-pages (currently only GENERAL_PAGE is implemented).
\Lean\Elements\Register::options_page( [
Register::GENERAL_PAGE,
] );
Elements
The following elements are provided:
SiteIdentity: The site logo. Defaults to the options page if $location is blank.
ContactDetails: Address, phone and email. Defaults to the options page if $location is blank.
moxie-lean/wp-elements 适用场景与选型建议
moxie-lean/wp-elements 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.16k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2016 年 04 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 moxie-lean/wp-elements 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 moxie-lean/wp-elements 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 moxie-lean/wp-elements 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Must-use plugin integrating WordPress with the Upsun platform: environment awareness, router-cache friendliness, safe preview clones, deploy migrations, Site Health checks, and a wp upsun CLI command.
Inertia.js server-side adapter for PHP. Handles full visits, Inertia XHR visits, asset-version 409 handshakes and partial reloads. Framework-agnostic, with transparent WordPress integration.
Adds Cache-Tag HTTP response headers for singular WordPress content and purges Cloudflare by tag when content changes.
AI Chatbot & Helpdesk Agent for WooCommerce. Connects your store to Egentify for AI-powered chat, order tracking, email, and ticketing.
MIDDAG's reference architecture for a WordPress plugin — composes the OSS framework/wordpress/ui libraries end to end.
Assets helper package for the Hybrid Core framework.
统计信息
- 总下载量: 3.16k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-05