devkabir/wordpress-plugin

A simple oop structure in the singleton pattern for a WordPress plugin.

Installs: 249

Dependents: 0

Suggesters: 0

Security: 0

Stars: 22

Watchers: 2

Forks: 5

Open Issues: 0

Language:Vue

Type:project

dev-with-dummy 2024-01-20 06:00 UTC

This package is auto-updated.

Last update: 2024-04-25 05:33:04 UTC


README

A simple WordPress plugin boilerplate

Description

This is a foundation for building WordPress plugins.

Technologies

  • vue.js The Progressive JavaScript Framework.
  • Vite Next Generation Frontend Tooling.
  • tailwindcss Rapidly build modern websites without ever leaving your HTML.
  • Notyf A minimalistic JavaScript library for toast notifications.
  • jQuery * A minimalistic JavaScript library for frontend. It's optional. you can use this wordpress script dependency.

Features

  • Check used Technologies features.
  • It replaces all placeholder strings during plugin creation.
  • It generates independent styles for both frontend and backend with any conflict with WordPress core and any plugin or themes.
  • It makes zip for test plugin throughout a team by one command.
  • It makes production build, push updates to GitHub and revert all changes from production to development with one command.
  • You can manage your plugin license and support with this. N.B. You will need a management system. you can check out my WordPress Plugin Management System

Requirements

  • node.js v18.12.1
  • npm v9.2.0
  • PHP v7.4
  • VS Code extension DEVSENSE.phptools-vscode

For Fresh Start

Dev version with dummy content

composer create-project devkabir/wordpress-plugin:dev-master <your-plugin-name>

Dev version with no content

composer create-project devkabir/wordpress-plugin:dev-fresh <your-plugin-name>

Dev version for admin side only

composer create-project devkabir/wordpress-plugin:dev-only-admin <your-plugin-name>

Documentation

Recommended Plugins

For nice error page, install wp-debugger

For visual learners

Featuring Dev version for admin side only

Video Title