Download the PHP package madebyaris/wp-boilerplate without Composer

On this page you can find all versions of the php package madebyaris/wp-boilerplate. 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 wp-boilerplate

WordPress Plugin Boilerplate

A modern WordPress plugin boilerplate with Vite integration, optional block support, and a CLI tool for common tasks.

Features

Requirements

Installation

Using Composer (Recommended)

The easiest way to get started is by using Composer:

This will create a new plugin in the specified directory and guide you through an interactive setup process where you'll:

The setup process will automatically handle file generation and configuration.

Manual Installation

Clone or download this repository to your WordPress plugins directory:

Usage

Creating a new plugin

Adding an admin menu

Adding a class

CLI Tool

The plugin comes with a powerful CLI tool that helps you manage and extend your plugin.

Available Commands

For manual initialization without the interactive prompts, you can use:

See all available options with:

Production Build

When you're ready to prepare your plugin for distribution, the following Composer commands are available:

Command Description
composer scoper Scopes the plugin Composer dependencies to prevent namespace conflicts with other plugins.
composer build Run the plugin build process for production i.e. updating the translation POT file, and prefixing namespace.
composer plugin:zip Creates a zip file of the plugin for distribution. Based on the Composer archive. Refer to the documentation for the available options to run the command.

Dependency Isolation

The scoper command uses PHP-Scoper to prefix all your dependencies with a unique namespace, preventing conflicts with other plugins that might use the same libraries. The prefixed code is placed in the dist/scoped directory.

You can configure scoping behavior in the scoper.inc.php file.

Internationalization

The build command includes generating POT translation files for your plugin using WP-CLI's i18n command. This ensures your plugin is ready for translation.

Distribution

The plugin:zip command creates a production-ready ZIP file in the dist directory, excluding development files like tests, source assets, and configuration files.

After initialization

After creating a new plugin, navigate to its directory and run:

Directory Structure

Block Support

The boilerplate includes optional support for Gutenberg blocks. You can:

  1. Include block support with the --blocks flag during initialization
  2. Remove block support by removing the blocks directory and block-functions.php file

License

GPL-2.0-or-later


All versions of wp-boilerplate with dependencies

PHP Build Version
Package Version
Requires php Version >=8.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 madebyaris/wp-boilerplate contains the following files

Loading the files please wait ....