Giter VIP home page Giter VIP logo

plugin-builder's Introduction

WordPress plugin builder

Description

This is a shell script, which you can run on the command line and which uses this boilerplate code to automatically set up a new plugin. It provides you with all that you will need to start working on a WordPress plugin based around code using PHP namespaces.

Usage

Run this shell script from the command line: ./build-wordpress-plugin.sh. The script will prompt you for the information it needs.

On Mac OS

If you're going to use this bash script on Mac OS, you'll first need to replace the default version of sed with the GNU version, so that all of the necessary regular expression functionality works. You can use Homebrew to do this.

brew install gnu-sed --with-default-names

Global access

(This applies for Mac OS.) Place a copy of the .sh file in /usr/local/bin and make it executable.

cp build-wordpress-plugin.sh /usr/local/bin/build-wordpress-plugin
chmod +x /usr/local/bin/build-wordpress-plugin

Then use build-wordpress-plugin from the plugin directory of your project.

Contributors

License

Use this code freely, widely and for free. Provision of this code provides and implies no guarantee.

Please respect the GPL v3 licence, which is available via http://www.gnu.org/licenses/gpl-3.0.html

Changelog

0.4.0

  • Reference new plugin-boilerplate-psr repository paths.

0.3.1

  • Add global access information to README.

0.3.0

  • Fix URL issue detailed in 0.2.0.
  • Hyperlink contributor URIs.

0.2.1

  • Fix minor formatting issue in README.

0.2.0

  • Major rewrite, including the use of the plugin key as a basis for the file and folder name, as well as the PascalCase PHP namespace.
  • Issues remain when adding an http:// prefix to a URL, and the script entry is currently not validated. These will be addressed in an upcoming version.

plugin-builder's People

Contributors

markhowellsmead avatar maurobringolf avatar sbaerlocher avatar

Watchers

Christoph S. Ackermann avatar 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.