Download the PHP package sb2-media/wordpress-starter-plugin without Composer

On this page you can find all versions of the php package sb2-media/wordpress-starter-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wordpress-starter-plugin

Hub

** In development. Not ready for production.

Central repository for crafting plugins to extend and customize WordPress

Features

Requirements

Make sure all dependencies have been installed before moving on:

Installation

  1. From the command line navigate to your WordPress mu-plugins directory.
  2. Run this command: composer create-project sb2-media/wordpress-starter-plugin.
  3. Rename the wordpress-starter-plugin directory to your-plugin-name.
  4. Change into the plugin directory: cd your-plugin-name.
  5. Update the package.json file with your info.
  6. Update the main plugin header in plugin.php with your plugin info.
  7. Run npm install.
  8. Run npm run dev.
  9. Global search and replace SB2Media\Hub namespaces with YourCompanyName\YourPluginName.
  10. Update composer.json with relevant information including the namespaces defined in the autoload section. They must match the namespaces used in the previous step.
  11. Run composer dump-autoload -o.
  12. In the WordPress dashboard, navigate to the Plugins page and locate the menu item that reads “Your Plugin Name.”
  13. Click on Activate.

Note that this will activate the source code of the starter plugin, but because it has no real functionality no menu items, meta boxes, or custom post types will be added.

Usage

Enqueuing Assets

Default behavior for enqueueing assets is via two configuration files found in the config folder. Front-end and back-end assets can be defined in enqueue.php and admin-enqueue.php, respectively. Adding multiple files is as simple as adding another entry in the configuration array. This is well-documented in each file.

Alternatively (or in conjunction with), assets can be enqueued via the EnqueueManager class' enqueueStyles and enqueueScripts methods. These are best called in the Plugin class' enqueueAssets and enqueueAdminAssets methods.

Each asset to be enqueued should be placed in the appropriate assets/sass (default for css), assets/css and/or assets/js subfolders. These filed must also be defined in webpack.mix.js in the plugin's root directory and compiled into the appropriate dist/ subfolder by executing npm run dev or npm run production on the command line.

Recommended Tools

i18n Tools

The WordPress Starter Plugin uses a variable to store the text domain used when internationalizing strings throughout. To take advantage of this method, there are tools that are recommended for providing correct, translatable files:

Any of the above tools should provide you with the proper tooling to internationalize the plugin.

License

The WordPress Starter Plugin is licensed under the GPL v2 or later.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

A copy of the license is included in the root of the plugin’s directory. The file is named LICENSE.

Assets

The assets/images directory contains three files.

  1. banner-772x250.png is used to represent the plugin’s header image.
  2. icon-256x256.png is a used to represent the plugin’s icon image (which is new as of WordPress 4.0).
  3. screenshot-1.png is used to represent a single screenshot of the plugin that corresponds to the “Screenshots” heading in your plugin README.txt.

Credits

This starter plugin was originally based on The WordPress Plugin Boilerplate which was started in 2011 by Tom McFarlin. The current version of the Boilerplate was developed in conjunction with Josh Eaton, Ulrich Pogson, and Brad Vincent. The fork which this is directly forked from was developed by Luís Rodrigues.

This plugin also uses code and concepts adapted from Carl Alexander and Tonya Mork's Fulcrum plugin.


All versions of wordpress-starter-plugin with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
composer/installers Version ~1.0
pimple/pimple Version ~3.0
netrivet/wp-event-emitter Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sb2-media/wordpress-starter-plugin contains the following files

Loading the files please wait ....