最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Is there any plugin development framework

programmeradmin10浏览0评论

Since I am new to WordPress plugin development I have been examining the internal structure of many plugins. I have found that most of them don't fit any pattern and so understanding how they work can be difficult.

I was wondering if there is more generalized way of plugin development, possibly with a framework, other than the methods described in official documentation.

Since I am new to WordPress plugin development I have been examining the internal structure of many plugins. I have found that most of them don't fit any pattern and so understanding how they work can be difficult.

I was wondering if there is more generalized way of plugin development, possibly with a framework, other than the methods described in official documentation.

Share Improve this question edited May 8, 2019 at 13:49 butlerblog 5,1313 gold badges28 silver badges44 bronze badges asked Feb 11, 2013 at 23:20 Rohith RaveendranRohith Raveendran 4391 gold badge4 silver badges6 bronze badges 1
  • Have you read my article about OCP? I'm already at the point where I say that there's no framework that will always work out. – kaiser Commented Jul 10, 2013 at 20:31
Add a comment  | 

5 Answers 5

Reset to default 29

AFAIK, there's no official/standard framework, and there will be as many plugin development styles as there are shades of white in north pole.

I'd say WordPress Coding Standards is a blueprint for a good style.

You'll find lots of good examples and excellent coders here in WPSE. A nice starting point: questions/tagged/plugin-development.

Highlighting:

  • Objective Best Practices for Plugin Development?
  • framework for plugin/theme options panel?
  • What Plugins Demonstrate Great WP Plugin Development?

Nowadays, I use Plugin Class Demo from @toscho as base for many plugins.

Right now, @Pippin is doing a series Introduction to WordPress Plugin Development 101 that may be of interest.

[ update, thanks to @Wyck contribution, a list of helper-plugins/boilerplates/frameworks ]

Plugin scbFramework, by @scribu:

A set of useful classes for faster plugin development.
This is a plugin toolkit that helps developers write plugins faster. It consists of several classes which handle common tasks, such as generating settings pages, creating database tables and more.

WordPress-Gear > PHP Boilerplate > Plugin stuff

  1. Plugin boilerplate by @tommcfarlin
  2. Object Oriented Plugin Template
  3. Settings framework by @gilbitron
  4. scbFramework - Classes for plugin dev
  5. WordPress Settings API - by @tareq_cse
  6. WP MVC - MVC framework to create plugins

Two more newer frameworks are:

  • http://getherbert/
  • http://framework.themosis/

Both share similarities with Laravel.

You can also generate your personalized version of Tom's Plugin boilerplate here.

I believe Sunrise (http://gndev.info/sunrise/) is the kind of thing you're asking for. It's relatively new, and I haven't used it myself, so I offer no recommendations. However, it looks quite promising. It's available on WordPress plugin directory as a plugin: http://wordpress/plugins/sunrise/.

You can check this one is very simple and basic base structure. https://github/softmixt/simple-wordpress-plugin-framework

发布评论

评论列表(0)

  1. 暂无评论