2017 © Pedro Peláez
 

wordpress-plugin wp-plugin-framework

A framework for quick production of WordPress plugins.

image

nirjharlo/wp-plugin-framework

A framework for quick production of WordPress plugins.

  • Sunday, July 22, 2018
  • by nirjharlo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

WP Plugin Framework

Build Status Scrutinizer Quality Score, (*1)

A WordPress plugin framework is a simple and light-weight base to build any standard WP plugin on top of it. Easily achieve high productivity. It contains various items, such as Settings pages, Data tables, Widgets, Metaboxes, Custom Post Types, Shortcodes along with infrastructure for DB operations., (*2)

There are extra classes for API integration, AJAX, File upload and Cron jobs., (*3)

NOTE: Requires PHP 5.4 and up. Uses cURL for API integration class., (*4)

Installation

  1. For production environment:
composer install --no-dev
  1. For development environment:
composer install
./vendor/bin/phpcs --config-set installed_paths ../../wp-coding-standards/wpcs

Usage

  1. Change the class namespaces, file namespaces, declarations in wp-plugin-framework.php and install.php before you start coding. Also, change the /asset file paths in plugin file wp-plugin-framework.php to your chosen folder path name. It's a precaution to avoid conflict., (*5)

  2. In plugin/PluginLoader.php the PluginLoader class includes all the files in instance and declares the classes inside them. You can remove existing files or add more files. It's recomended to put all the plugin features instances inside PluginLoader. This will help in organising the code., (*6)

  3. In plugin/PluginLoader.php the installation and uninstallation classes contain possible situations, including DB installation and uninstallation features., (*7)

Features

Go through the files in /lib/class- and /src/class-. First one contains classes for extra features, while the latter is using essential features., (*8)

/plugin/lib Files

/plugin/lib/Cron.php :: Cron to schedule operations., (*9)

/plugin/lib/Api.php :: Api to integrate 3rd party APIs., (*10)

/plugin/lib/Table.php :: Table to display data tables., (*11)

/plugin/lib/Ajax.php :: Ajax to make AJAX requests., (*12)

/plugin/lib/Upload.php :: Upload to upload a file., (*13)

/plugin/lib/Script.php :: Script to add required CSS and JS., (*14)

/plugin/src Files

/plugin/src/Install.php :: Install to handle activation process., (*15)

/plugin/src/Db.php :: Db to install database tables., (*16)

/plugin/src/Settings.php :: Settings to create admin settings pages., (*17)

/plugin/src/Cpt.php :: Cpt to create custom post type., (*18)

/plugin/src/Widget.php :: Widget to add custom widget., (*19)

/plugin/src/Metabox.php :: Metabox to add custom metabox in editor screen., (*20)

/plugin/src/Shortcode.php:: Shortcode to add and display shortcodes., (*21)

/plugin/src/Query.php:: Query to use post and user query. It uses wp_pagenavi() for breadceumbs, (*22)

/plugin/src/RestApi.php:: RestApi to extend REST API., (*23)

The Versions

22/07 2018

dev-master

9999999-dev https://github.com/nirjharlo/wp-plugin-framework

A framework for quick production of WordPress plugins.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=5.3.0

 

wordpress framework