Git Product home page Git Product logo

wp-plugin-starter's Introduction

WP Plugin Starter

Development has just begun on this plugin; the goal is to create an intuitive starting point for beginning plugin development by providing some out-of-the-box scaffolding, and eliminating the need to perform manual string replacements on things like plugin names, class namespaces, author names, URLs, and more.

This example plugin requires the WP Plugin Starter Init Symfony Console command as a development dependency. Eventually, the idea is that this dependency will get triggered upon use of the composer create-project command, opening an interactive wizard that will ask you for your replacement terms.

Following confirmation of your entered terms, the replacement process will begin, and from there, you'll have a functioning plugin at your own namespace, and you can start building out its functionality.

Installation

To give it a try, you can run the following command:

composer create jmichaelward/wp-plugin-starter your-project-name.

This will create a directory named your-project-name from the location where the command was called, and will automatically download the required dependencies.

Once the plugin is installed, cd your-project-name, then run ./vendor/bin/wp-plugin-starter-init. As of right now, you will be asked simply for a namespace matching the Vendor\PackageName convention. After submitting this namespace, your main plugin file should get updated to your-project-name.php and the main plugin file and Plugin.php file will be updated to reflect the Vendor\PackageName value you entered.

wp-plugin-starter's People

Stargazers

Joemar Tagpuno avatar

Watchers

James Cloos avatar Jeremy Ward 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.