Download the PHP package orkan/wp-base without Composer

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

WordPress plugin boilerplate v3.0.0

Extendable PHP classes for easy customization.

Out-of-the-box:

Introduction:

This package was made to provide a foundation to create your own WordPress plugin with a basic functionality already implemented, like the Settings page or DB cache supprort.

This package will install in Composer [vendor] dir, making it inaccessible from WordPress installation. You must create your own folder in WP [plugins] dir and extend only those classes you will need in your project. A working example of such plugin can be found here: Base1

Create plugin:

Create your plugin entry point file [WP]/wp-content/plugins/[your_plugin]/plugin.php then run() only the necessary parts:

Tools:

The Base1 package comes with some example Tools and their CSS/JS assets (/assets dir) and FORM input definitions ( /config dir). The included Tools are:

Links to these Tools will be automatically displayed in the: Dashboard > Plugins > My Plugin - meta row.

CSS/JS assets:

The example CSS/JS assets are pre-build and minified, but you can modify them and re-build on each page refresh by adding these constants to wp-config.php file:

Another way to rebuild assets is by using a Composer script command: composer run rebuildOrkWpBaseAssets described in next section.

Composer:

Composer is required to install this plugin and all its dependencies and also to support autoloading class files. This README assumes following directory structure in your Composer/WordPress installation:

Add composer autoloader to wp-config.php file:

Turn your plugin into Composer package by adding these lines in your plugin's composer.json file:

To properly install WP plugins from Composer repositories add these lines to your root composer.json file:

If you decide to build your assets automatically by using Composer scripts feature eg. on every "dump autoload", you can use the included method Orkan\\WP\\Base\\Utils\\Composer::rebuildAssets

Now you can also manually rebuild assets by running this command: composer run rebuildMyPluginAssets

Requirements:

License:

MIT

Author

Orkan

Updated

Sun, 26 May 2024 17:31:07 +02:00


All versions of wp-base with dependencies

PHP Build Version
Package Version
Requires erusev/parsedown Version ^1.7
orkan/utils Version ^9
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 orkan/wp-base contains the following files

Loading the files please wait ....