chrico/wp-fields
Composer 安装命令:
composer require chrico/wp-fields
包简介
Package which provides some re-usable fields for WordPress.
README 文档
README
ChriCo WP-Fields is a library (not a plugin) that allows to generate form fields in WordPress.
Minimum requirements and dependencies
ChriCo Fields requires:
- PHP 8+
- WordPress latest - 0.1
- Composer to be installed
When installed for development, via Composer, ChriCo Fields also requires:
- "phpunit/phpunit"
- "brain/monkey"
Docs
Documentation can be found in docs/.
Frequently Asked Questions
Why are you not just using existing packages like the Symfony Forms or Zend Form?
That's a good question! As already mentioned above, WordPress has different pages and scenarios where to use form fields. Both packages are excellent and I worked a lot with them in past.
But: They need a ton of dependencies.
As example, if you're going to use Symfony Forms, you've to use other Symfony Packages like Event Dispatcher, Intl, Options Resolver, Property Access. And that's not all, if you're serious, you'll probably end up using as well Symfony Validation, Symfony CSRF, Twig. And that's the whole point..when we load half of Symfony and we're not far away from including Doctrine as well...why do we still use WordPress?
What about WordPress Field-Plugins like Advanced Custom Fields?
I guess you're wrong here. ;-)
What about the upcoming WordPress Fields API?
Nothing. There's a lot of weird and quirky code in it. No interfaces, no real abstraction, no strict return types, PHP 5.2, missing Unit Tests, ... the list is endless, so i'll stop here.
In fact, the API will eventually appear in WordPress in near - or far - future. But until then, everything is fine. If the API is really released, I'll adapt this code to fit on top of the Fields API.
License
Copyright (c) since 1987 ChriCo.
ChriCo Fields code is licensed under GNU General Public License v3.0.
_____ _ _ _____
/ ____| | (_)/ ____|
| | | |__ _ __ _| | ___
| | | '_ \| '__| | | / _ \
| |____| | | | | | | |___| (_) |
\_____|_| |_|_| |_|\_____\___/
chrico/wp-fields 适用场景与选型建议
chrico/wp-fields 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 83.42k 次下载、GitHub Stars 达 19, 最近一次更新时间为 2017 年 10 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 chrico/wp-fields 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 chrico/wp-fields 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 83.42k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2017-10-16