WordPress-Widget-Boilerplate

[WordPress] The WordPress Widget Boilerplate is an organized, maintainable boilerplate for building widgets using WordPress best practices.

Github星跟蹤圖

WordPress Widget Boilerplate

The WordPress Widget Boilerplate serves as a foundation off of which to build your WordPress widgets using modern tools such as Composer and an object-oriented approach all of which is documented in this series of posts.

Features

  • The Widget Boilerplate is fully-based on the WordPress Widget API
  • Uses PHPDoc conventions for easily following the code.
  • Uses Composer to handle linting and code quality tools before committing it to a repository.
  • Uses a strict file organization scheme to make sure the assets are easily maintainable.

Usage

The WordPress Widget Boilerplate is ready to activate as-is (and it includes a sample widget with a title, content, and checkbox).

  1. Copy the wordpress-widget-boilerplate directory into your wp-content/plugins directory
  2. Navigate to the "Plugins" dashboard page
  3. Locate the menu item that reads "TODO"
  4. Click on "Activate"

The purpose of having a working widget is to give you an idea as to where certain things belong. Further, the idea is to fork the existing code and make it your own for your own project.

It's organized in such a way that lends itself to unit testing, a higher level of cohesion, a lower level of coupling. It also uses features of the object-oriented paradigm to provide better organization of code base and features of PHP such as namespaces and type hinting.

Author Information

The WordPress Widget Boilerplate was originally started and is maintained by Tom McFarlin.

The project is open-source and receives contributions from awesome WordPress Developers throughout the world.

主要指標

概覽
名稱與所有者tommcfarlin/WordPress-Widget-Boilerplate
主編程語言PHP
編程語言CSS (語言數: 3)
平台
許可證GNU General Public License v3.0
所有者活动
創建於2011-07-08 17:08:51
推送於2019-03-20 17:14:34
最后一次提交2019-03-20 13:14:12
發布數1
最新版本名稱2.0.0 (發布於 )
第一版名稱2.0.0 (發布於 )
用户参与
星數1k
關注者數69
派生數204
提交數100
已啟用問題?
問題數14
打開的問題數0
拉請求數21
打開的拉請求數0
關閉的拉請求數4
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?