Download the PHP package dream-encode/de-wordpress-plugin-utils without Composer

On this page you can find all versions of the php package dream-encode/de-wordpress-plugin-utils. 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 de-wordpress-plugin-utils

DE WordPress Plugin Utils

Reusable WordPress plugin utilities including abstracts for plugin bootstrap, lifecycle, settings, REST API, logging, background processing, and data migrations.

Installation

Requirements

Provided Abstracts

Abstract_Plugin

Dream_Encode\WordPress_Plugin_Utils\Abstracts\Abstract_Plugin

Main plugin bootstrap template. Constructs the loader, loads dependencies, sets locale, and wires admin/public hooks.

Must implement:

Optional overrides:

Public API:


Plugin_Loader

Dream_Encode\WordPress_Plugin_Utils\Loader\Plugin_Loader

Concrete class. Stores and bulk-registers WordPress actions and filters. Can be used directly or subclassed for custom hook-registration behaviour.

Public API:


Abstract_Plugin_Activator

Dream_Encode\WordPress_Plugin_Utils\Abstracts\Abstract_Plugin_Activator

Consistent entry point for register_activation_hook.

Static entry point: activate(): void

Optional overrides (all no-ops by default):


Abstract_Plugin_Deactivator

Dream_Encode\WordPress_Plugin_Utils\Abstracts\Abstract_Plugin_Deactivator

Consistent entry point for register_deactivation_hook.

Static entry point: deactivate(): void

Optional overrides (all no-ops by default):


Abstract_Plugin_I18n

Dream_Encode\WordPress_Plugin_Utils\Abstracts\Abstract_Plugin_I18n

Loads plugin translations via load_plugin_textdomain.

Must implement:

Public API:


Abstract_Plugin_Upgrader

Dream_Encode\WordPress_Plugin_Utils\Abstracts\Abstract_Plugin_Upgrader

Handles plugin upgrade/install logic with cache-clearing for Redis/object cache environments. Integrates with Action Scheduler for deferred tasks.


Asset_Manager

Dream_Encode\WordPress_Plugin_Utils\Assets\Asset_Manager

Concrete class. Screen-based stylesheet and script enqueuer for both admin and front-end contexts. All configuration is passed via constructor — no subclassing required for common usage.

Constructor (all params after $plugin_version are optional):

Public API:


Abstract_REST_API

Dream_Encode\WordPress_Plugin_Utils\Abstracts\Abstract_REST_API

Base class for registering a REST API namespace and routes.


Abstract_REST_Controller

Dream_Encode\WordPress_Plugin_Utils\Abstracts\Abstract_REST_Controller

Extends WP_REST_Controller with a reusable pattern for REST endpoint controllers.

Must implement:


REST_Authentication

Dream_Encode\WordPress_Plugin_Utils\RestApi\REST_Authentication

Handles WP REST API authentication, including cookie auth error checking, app password authentication, and permission helpers. Auto-registers the rest_authentication_errors filter when the file is loaded.

Static permission helpers:

Static accessors:


REST_Response

Dream_Encode\WordPress_Plugin_Utils\RestApi\REST_Response

Simple value object for REST API responses.

Properties:


Object_Data

Dream_Encode\WordPress_Plugin_Utils\Data\Object_Data

Concrete class. WooCommerce-style data object. Tracks a $data array, a $changes diff, and optional $extra_data. Can be used directly or subclassed to declare typed $data/$extra_data defaults and domain-specific getters/setters.

Public API:


Abstract_WC_Logger

Dream_Encode\WordPress_Plugin_Utils\Abstracts\Abstract_WC_Logger

Logs data through WooCommerce's WC_Logger, falling back to error_log when WooCommerce is unavailable.


Abstract_Data_Migrator

Dream_Encode\WordPress_Plugin_Utils\Abstracts\Abstract_Data_Migrator

Template-method base for multi-run data migrations driven by Action Scheduler. Each migration is broken into individually-scheduled runs; progress, status, and results are persisted via plugin-supplied storage hooks.

Must implement (persistence — decoupled from any specific storage):

Must implement (metadata):

Public API:


Abstract_Background_Processor

Dream_Encode\WordPress_Plugin_Utils\Abstracts\Abstract_Background_Processor

Template-method base for long-running asynchronous background processors driven by Action Scheduler. Supports prerequisite sub-processors, configurable batch sizes, and per-run progress tracking.

Must implement (persistence):

Must implement (metadata):


Settings

Plugin_Settings_Repository

Dream_Encode\WordPress_Plugin_Utils\Settings\Plugin_Settings_Repository

Thin read/write wrapper around a single WordPress option key. Results are cached in-memory for the request lifetime.

Constructor: __construct( string $option_name, array $defaults = [], bool $autoload = true )

Public API:


Functions

Dream_Encode\WordPress_Plugin_Utils\Common\Functions

All methods are static.


Development

License

GPL-3.0-or-later


All versions of de-wordpress-plugin-utils with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
woocommerce/action-scheduler Version ^3.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 dream-encode/de-wordpress-plugin-utils contains the following files

Loading the files please wait ...