Download the PHP package tschallacka/wpbuilder without Composer

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

Wordpress Composer Plugin Builder

A plugin builder for publishing to the wordpress plugin store making sure all your composer dependencies are loaded into your own namespace, thus preventing conflicts between different required dependencies.
You can of course use this if you just want to load up all the things in your project into your own namespace so you'll always have the versions you want.

How to use it:

run composer with the following command

composer require tschallacka/wpbuilder

or add in your composer.json the following line an then update.

Then to execute it browse in your favorite cli(bash, cmd, command.com) to the directory where you wish to execute this. Chances are you already have your composer cli open here. Ideally you're in the same directory where you have your vendor folder.

cd /d/www/mydevsite/wp-plugin/mypluginname

php vendor/tschallacka/wpbuilder/build.php

It will create a new directory called build in your current working directory, and place all items there in your namespace. It will attempt to rename all references to the namespace to the namespace you defined.

This program is far from pefect yet, but it should shave of a significant amount of time if you wish to use composer packages in your wordpress plugin, without having to worry about duplicates or older or newer versions of a package hampering your plugin.

help.txt

Welcome to Tschallacka's Composer to Wordpress Builder. The purpose of this tool is to help you publishing your plugins in a wordpress comfortable format without clashing versions of plugins with other plugins (for example someone using an older version of Carbon breaking your plugin) This will copy all files into a new directory, moving all the files into the root namespace you defined.

Requirements:

The build plugin will have a PSR-4 autoload command for composer included. Make sure that you include the vendor/autoload.php file in your plugin where needed to make sure everything is loaded as expected.

Arguments:
-h, --help Show this help
--root-namespace=WordpressPlugin The root namespace under which all
loaded dependencies should be placed.
Ideally you will name this the same as the root namespace as your plugin
as otherwise your plugin will also be moved into this namespace.
--build-source=/users/foo/Desktop/bar If you wish to execute this script somewhere else
than the current working directory use this argument to define the
location of the source directory. The plugin will also be built in that
directory


All versions of wpbuilder with dependencies

PHP Build Version
Package Version
Requires php Version >=7.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 tschallacka/wpbuilder contains the following files

Loading the files please wait ....