phpnomad/wordpress-plugin

There is no license information available for the latest version (2.0.0) of this package.

PHPNomad packages bundle

Maintainers

Package info

github.com/phpnomad/wordpress-plugin

Type:wordpress-plugin

pkg:composer/phpnomad/wordpress-plugin

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

This package is auto-updated.

Last update: 2026-04-10 02:14:34 UTC


README

Latest Version Total Downloads PHP Version License

PHPNomad packaged as a single installable WordPress plugin. This bundle ships every PHPNomad package together with the WordPress integration layer, so other plugins can depend on PHPNomad through WordPress's built-in Plugin Dependencies feature instead of shipping their own vendored copy.

Requirements

  • PHP 8.2 or higher
  • WordPress 6.5 or higher (for the Plugin Dependencies feature)

What's Bundled

Core Foundation

Configuration & Loading

Dependency Injection & Design Patterns

Database & Data Management

HTTP & REST API

Authentication & Security

Templating & Content

Events & Background Tasks

Caching

CLI & Console

Email

Internationalization

Asset Management

Utilities & Helpers

WordPress Integration

Using PHPNomad as a Dependency

If you're building a plugin that depends on PHPNomad, use WordPress's built-in Plugin Dependencies feature (introduced in WordPress 6.5) so PHPNomad is installed and activated before your plugin loads.

Declaring the Dependency

Add the Requires Plugins header to your plugin's main PHP file:

/**
 * Plugin Name: My Plugin
 * Requires Plugins: phpnomad
 */

Using the phpnomad_ready Action

To make sure PHPNomad is fully loaded before your plugin initializes, hook into the phpnomad_ready action:

add_action('phpnomad_ready', function () {
    // PHPNomad is now loaded and ready to use.
    // Initialize your plugin here.
});

This action fires immediately after PHPNomad's Composer autoloader is loaded, so every PHPNomad class and interface is available by the time your callback runs.

How It Works

  • WordPress prevents your plugin from being activated if PHPNomad is not installed
  • Users see a clear indication that PHPNomad must be installed first
  • PHPNomad cannot be deactivated or deleted while your plugin is active
  • If PHPNomad is removed via FTP or deployment, WordPress displays a notice about missing dependencies

Important Notes

  • The Requires Plugins header uses the plugin slug (phpnomad), not the file path
  • This feature does not enforce version requirements or loading order
  • Continue to use function_exists(), class_exists(), interface_exists(), and version checks where your plugin relies on specific functionality
  • For more information, see Plugin Dependencies in WordPress 6.5

Documentation

Full PHPNomad documentation lives at phpnomad.com.

License

GPLv3 or later.