Coder Social home page Coder Social logo

ni-c0de-mus / wordpress-widget-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tommcfarlin/wordpress-widget-boilerplate

0.0 1.0 0.0 164 KB

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

Home Page: http://tommcfarlin.com/wordpress-widget-boilerplate/

License: GNU General Public License v3.0

CSS 0.56% JavaScript 1.76% PHP 97.68%

wordpress-widget-boilerplate's Introduction

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.

wordpress-widget-boilerplate's People

Contributors

tommcfarlin avatar herewithme avatar eddiemonge avatar tpaksu avatar pixeline avatar frebro avatar gregrickaby avatar jameswlane avatar pippinsplugins avatar rmariuzzo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.