michaeluno/admin-page-framework
Composer 安装命令:
composer require michaeluno/admin-page-framework
包简介
A PHP class based framework which facilitates WordPress plugin and theme development.
README 文档
README
Welcome to Admin Page Framework GitHub Repository
Admin Page Framework is an OOP based open source WordPress library that facilitates theme and plugin development.
Installation
There are mainly two ways to include the framework.
-
Use the framework loader plugin.
-
Use the generated framework files which can be downloaded via
Dashboard->Admin Page Framework->Tools->Generator.
For more details, see the Getting Started (Dashboard -> Admin Page Framework -> Help -> Getting Started) of the admin pages of the loader plugin.
Examples
Create a Page
<?php /* Plugin Name: Admin Page Framework - Getting Started */ include( dirname( __FILE__ ) . '/library/apf/admin-page-framework.php' ); class APF extends AdminPageFramework { public function setUp() { $this->setRootMenuPage( 'Settings' ); // where to belong $this->addSubMenuItem( array( 'title' => 'My First Page', 'page_slug' => 'myfirstpage' ) ); } /** * @callback action do_{page slug} */ public function do_myfirstpage() { ?> <h3>Say Something</h3> <p>This is my first admin page!</p> <?php } } new APF;
Create a Form
<?php /* Plugin Name: Admin Page Framework - My First Form */ include( dirname( __FILE__ ) . '/library/apf/admin-page-framework.php' ); class APF_MyFirstFrom extends AdminPageFramework { public function setUp() { $this->setRootMenuPage( 'My Settings' ); // create a root page $this->addSubMenuItem( array( 'title' => 'My First Form', 'page_slug' => 'my_first_form' ) ); } /** * The pre-defined callback method that is triggered when the page loads. * @callback action load_{page slug} */ public function load_my_first_form( $oAdminPage ) { $this->addSettingSections( array( 'section_id' => 'my_first_text_section', 'page_slug' => 'my_first_form', ) ); $this->addSettingFields( array( 'field_id' => 'text', 'section_id' => 'my_first_text_section', 'title' => 'Text', 'type' => 'text', 'default' => 123456, ), array( 'field_id' => 'submit', 'type' => 'submit', ) ); } } new APF_MyFirstFrom;
See more code examples in Dashboard -> AdminPageFramework -> Help -> Examples.
Resources
Getting Helped
Contributions
Anyone is welcome to contribute to Admin Page Framework. There are various ways you can contribute:
- Report bugs.
- Post ideas on enhancements.
- Send us a Pull Request with your bug fixes and/or new features.
- Write a custom field type.
- Write test cases.
- Improve the documentation.
- Tweak the styling of the framework page elements.
- Translate the language files in the language directory to your native language.
- Possibly more.
Browser Compatibility
Internet Explorer 9 or below is not supported.
The framework uses
- CSS
flex.
Framework Core Development
See the contribution guideline.
Supporting Future Development
If you like the library, please rate and review it in the WordPress Plugin Directory. Also donation would be greatly appreciated. Thank you!
Copyright and License
Admin Page Framework (Framework Files)
Admin Page Framework - Loader (WordPress Plugin)
michaeluno/admin-page-framework 适用场景与选型建议
michaeluno/admin-page-framework 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 742 次下载、GitHub Stars 达 345, 最近一次更新时间为 2015 年 08 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「plugin」 「form」 「wordpress」 「options」 「Settings」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 michaeluno/admin-page-framework 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 michaeluno/admin-page-framework 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 michaeluno/admin-page-framework 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
CakePHP 4.x AdminLTE Theme.
Diese Contao 4 Erweiterung stellt Google reCAPTCHA V2 in Form eines neuen Formularfeldes im Formulargenerator bereit. This extension provides Google reCAPTCHA V2 in the form of a new form field in the form generator of Contao Open Source CMS.
A Laravel Filament Forms slug field.
A jQuery augmented PHP library for creating and validating HTML forms
Laravel contact us form package to send email and save to database
统计信息
- 总下载量: 742
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 349
- 点击次数: 25
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2015-08-29