🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Konto Get it free
PHP Constants Manager icon
gepflegt Getestet mit WP 7.1

PHP Constants Manager

Safely manage PHP constants (defines) through the WordPress admin or WP-CLI with full CRUD functionality and comprehensive viewing capabilities.

Aktive Installationen10+10+ Stufe
Downloads · 30d99▲ +30.3% vs prev. 30d
Wertung5/51 Bewertungen
Gesundheits-Score63/100Gut
Downloads aller Zeiten1.1KSince Jun 2025
Unterstützung gelöst—Keine aktuellen Threads
erfordertWP 5.0PHP 7.4+
Downloads · 7d17▼ -39.3% week over week
Unser Urteil

Solide Wahl

PHP Constants Manager is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites, is rated 5/5 and was last updated 3 months ago, and scores 63/100 on our health check.

  • Getestet mit dem neuesten WordPress (7.1)
  • Kleine Benutzerbasis (10+ aktive Installationen)
  • Bisher sehr wenige Bewertungen

Wie stapelt es sich?

Side-by-side bei Installationen, Updates, Bewertungen und Support

Tägliche Downloads

135Aug 31Oct 14Nov 28
Gestern2
Täglicher Durchschnitt (1 Jahr)2
Spitzentag3325. August 2026
Letzte 12 Monate815

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where PHP Constants Manager stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
Administrator >100 10,000 Beste Admin-Plugins →
configuration >100 10,000 Best configuration plugins →
Constants #10 4,353 Best Constants plugins →
defines >100 6,156 Best defines plugins →
php #49 10,000 Best php plugins →

Versionsübernahme

Anteil aktiver Sites pro Release.

  • 1.2100.0%

Bewertungsaufschlüsselung

★★★★★★★★★★ 5 from 1 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About PHP Constants Manager

From the official readme · v1.2.2

Beschreibung

PHP Constants Manager provides a secure and user-friendly interface for managing PHP constants in WordPress. No more editing wp-config.php or theme files to add or modify constants!

Hauptmerkmale

  • Complete Constant Management: Create, read, update, and delete PHP constants from the WordPress admin
  • Dual View System: “My Constants” for your custom constants and “All Constants” to view every constant in your WordPress installation
  • Native WordPress UI: Built using WP_List_Table with sorting, searching, and bulk actions
  • Multiple Data Types: Support for String, Integer, Float, Boolean, and NULL constant types with strict validation
  • Real-time Validation: Form fields validate values against selected type with immediate feedback
  • Active/Inactive States: Toggle constants on/off without deleting them
  • Conflict Detection: Visual indicators show when constants are already defined elsewhere (predefined)
  • Screen Options: Customize table views with adjustable items per page and column visibility controls
  • Early Loading Option: Optional must-use plugin creation for loading constants before other plugins
  • Load Order Awareness: Constants loaded during plugins_loaded action (priority 1) for broad compatibility
  • Comprehensive Help: Built-in help system with detailed documentation and best practices
  • Administrator Only: Secure access restricted to users with manage_options capability
  • Database Storage: Constants stored safely in a custom database table with full audit trail
  • Import/Export: Backup and migrate constants using CSV files with detailed error reporting
  • WP-CLI Integration: Manage constants, import/export CSV, and toggle early loading from the terminal via wp phpcm ... — ideal for automation, CI/CD, and multi-site provisioning

Understanding Predefined Constants

The plugin intelligently detects when constants are already defined by WordPress core, other plugins, or your theme:
* Not Predefined: Your constant is unique and will work normally
* Predefined: The constant exists elsewhere – your definition is saved but won’t override the existing value due to PHP’s constant rules

Anwendungsfälle

  • Manage environment-specific configuration
  • Toggle debug constants without file editing
  • Store API keys and configuration values securely
  • Create fallback constants for different environments
  • Document constant purposes with built-in descriptions
  • Audit all constants in your WordPress installation
  • Backup constants to CSV files for migration between sites
  • Import constants in bulk from properly formatted CSV files
  • Automate site setup and deployment pipelines with WP-CLI (wp phpcm add MY_KEY ...)

WP-CLI Commands

When WP-CLI is available, the plugin registers a phpcm command suite that mirrors the admin UI:

  • wp phpcm list [--active] [--inactive] [--type=<type>] [--search=<term>] [--format=<format>] — list managed constants
  • wp phpcm get <name> — show a single constant (supports --field=<field>)
  • wp phpcm add <name> [<value>] [--type=<type>] [--description=<text>] [--inactive] [--porcelain] — create a constant (value can be - to read from stdin)
  • wp phpcm update <name> [--value=<value>] [--type=<type>] [--description=<text>] [--active|--inactive] — update fields
  • wp phpcm delete <name>... [--yes] — delete one or more by name
  • wp phpcm activate|deactivate|toggle <name>... — flip active state
  • wp phpcm defined <name> — report whether the constant is currently defined and by whom (this plugin, early-load, or elsewhere like wp-config.php)
  • wp phpcm all-defines [--user-defined] [--search=<term>] — inspect every PHP constant present in the process
  • wp phpcm status — plugin health summary (table, row counts, early-loading state)
  • wp phpcm import <file|-> [--overwrite] — import CSV (file path or stdin)
  • wp phpcm export [<file>] [--active] [--inactive] [--type=<type>] — write CSV to a file or stdout
  • wp phpcm early-loading enable|disable|status — manage the must-use plugin that loads constants before all other plugins

Run wp help phpcm <subcommand> for detailed usage, flags, and examples.

Developer Information

Database Schema

The plugin creates a custom table {prefix}phpcm_constants with the following structure:
* id – Primary key (auto-increment)
* name – Constant name (unique, varchar 191)
* value – Constant value (longtext)
* type – Data type (enum: string, integer, float, boolean, null)
* is_active – Whether the constant is loaded (tinyint)
* description – Optional description (text)
* created_at – Creation timestamp (datetime)
* updated_at – Last update timestamp (datetime)

WordPress Hooks Used

  • plugins_loaded (priority 1) – Early constant loading for maximum compatibility
  • admin_menu – Menu registration
  • admin_post_* – Form submission handling
  • wp_ajax_* – AJAX operations
  • WP_CLI::add_command('phpcm', ...) – Registers the CLI command when WP-CLI is available

Load Order & Compatibility

Constants are defined during plugins_loaded with priority 1, ensuring they are available to:
* All theme functions and templates
* Other plugins (unless using higher priority)
* WordPress core hooks like init, wp_loaded, etc.

Security Implementation

  • Capability requirement: manage_options (administrators only)
  • Nonce verification on all form submissions and AJAX requests
  • SQL injection prevention with prepared statements
  • Input sanitization using WordPress core functions
  • Output escaping for all displayed data

Code Standards

This plugin follows WordPress coding standards and best practices:
* PSR-4 autoloading structure
* WordPress database abstraction layer
* Internationalization ready
* WP_List_Table implementation
* Standard WordPress admin UI patterns

Installation

  1. Laden Sie den Ordner php-constants-manager in das /wp-content/plugins/-Verzeichnis hoch
  2. Aktivieren Sie das Plugin über das „Plugins“-Menü in WordPress
  3. Navigate to ‘PHP Constants’ in the WordPress admin menu
  4. Start managing your constants!

The plugin will automatically create the necessary database table upon activation.

Änderungsprotokoll

1.2.2

  • Bumped WordPress compatibility to 7.1
  • Guard wp_cache_flush_group() behind a function check so caching works on WordPress 5.0–6.0

1.2.1

  • Ensure WP 7.0 Compat

1.2.0

  • WP-CLI support: manage constants from the terminal with wp phpcm list|get|add|update|delete|activate|deactivate|toggle|defined|all-defines|status|import|export|early-loading
  • Refactored shared casting, validation, and formatting helpers into includes/phpcm-helpers.php — the generated must-use loader now reuses them instead of duplicating logic
  • Extracted CSV import/export into PHPCM_Import_Export so the admin UI and CLI share the same parser and writer

1.1.5

  • Renamed must-use plugin to attempt to get it to load earlier than other must-use plugins

1.1.4

  • Security hardening

1.1.3

  • Enhanced file upload validation with proper isset() checks for $_FILES array indices
  • Improved input sanitization for file upload security

Vollständiges Änderungsprotokoll auf WordPress.org →

Screenshots

"My Constants" page showing custom constants with full management capabilities
"My Constants" page showing custom constants with full management capabilities
"All Constants" page displaying every constant in the WordPress installation
"All Constants" page displaying every constant in the WordPress installation
Add new constant form with data type selection and description field
Add new constant form with data type selection and description field
Settings page with Early Loading option for must-use plugin creation
Settings page with Early Loading option for must-use plugin creation
Import/Export page with CSV upload and download functionality
Import/Export page with CSV upload and download functionality
Screen Options panel for customizing table display preferences
Screen Options panel for customizing table display preferences
Help page with comprehensive documentation and best practices
Help page with comprehensive documentation and best practices

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Best PHP Constants Manager alternatives

Alle Admin-Plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
1 Loginizer Loginizer Loginizer ist ein WordPress-Sicherheits-Plugin, das Ihnen hilft, gegen Bruteforce-Angriffe zu kämpfen. von Softaculous 1M+ ★★★★★★★★★★ 4.8 (1K) Vor 1 Woche 91
2 Redux-Framework Redux-Framework Redux ist ein einfaches, wirklich erweiterbares und vollständig ansprechendes Options-Framework für WordPress… von David Anderson / Team-Updraft 800K+ ★★★★★★★★★★ 4.4 (273) Vor 1 Tag 80
3 Admin-Menü-Editor Admin-Menü-Editor Ermöglicht das Bearbeiten des WordPress-Admin-Menüs. Sie können Menüs neu ordnen, ausblenden oder umbenennen, benutzerdefinierte… Von Janis Elsts 300K+ ★★★★★★★★★★ 4.6 (312) Vor 2 Wochen 80
4 Weißes Etikett CMS Weißes Etikett CMS Passen Sie das Armaturenbrett und das Branding an, verbergen Sie Menüs und vieles mehr. von Video-Benutzerhandbüchern 200K+ ★★★★★★★★★★ 4.7 (114) Vor 5 Monaten 65
5 Erweiterte benutzerdefinierte Felder: Erweitert Erweiterte benutzerdefinierte Felder: Erweitert All-in-One-Verbesserungssuite, die die WordPress- und erweiterten benutzerdefinierten Felder verbessert. Von Konrad Chmielewski 100K+ ★★★★★★★★★★ 4.8 (132) Vor 1 Monat 76
6 Verschachtelte Seiten Verschachtelte Seiten Verschachtelte Seiten bietet eine Drag-and-Drop-Oberfläche zum Verwalten von Seiten und Beiträgen in der WordPress… von Hook & Filter 90K+ ★★★★★★★★★★ 4.7 (126) Vor 5 Tagen 83
7 Ruhe deaktivieren API Ruhe deaktivieren API Deaktivieren Sie die Nutzung des Rests API auf Ihrer Website für Benutzer der Website. Jetzt mit Unterstützung der Benutzerrolle! Von Dave McHale 80K+ ★★★★★★★★★★ 4.8 (38) Vor 3 Jahren 37
8 Bedingte Menüs Bedingte Menüs Dieses Plugin ermöglicht es Ihnen, bedingte Menüs pro Posts, Seiten, Kategorien, Archiv… von thefyme 60K+ ★★★★★★★★★★ 4.4 (71) Vor 4 Monaten 62
9 Vom Server hinzufügen Vom Server hinzufügen Add From Server wurde entwickelt, um den Schmerz von schlechten Webhosts zu lindern, so dass Sie… von Dion Hulse 50K+ ★★★★★★★★★★ 4.6 (239) Vor 6 Jahren 46
10 Alles in einem Favicon Alles in einem Favicon Fügen Sie Ihrer Website und den WordPress-Administrationsseiten ganz einfach ein Favicon hinzu. Komplett mit Upload… Von Garrett Grimm 50K+ ★★★★★★★★★★ 4.5 (82) Vor 3 Jahren 46

Fragen und Antworten

PHP Constants Manager: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: WordPress.org

Is PHP Constants Manager free?

Yes. PHP Constants Manager is free to download and use from the official WordPress.org plugin directory.

Is PHP Constants Manager safe to use in 2026?

PHP Constants Manager is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites, is rated 5/5 and was last updated 3 months ago, and scores 63/100 on our health check.

How many websites use PHP Constants Manager?

PHP Constants Manager is active on 10+ WordPress websites and has been downloaded 1,091 times since it launched in June 2025. It was downloaded 99 times in the last 30 days.

Does PHP Constants Manager work with WordPress 7.1?

Yes. The developer has tested PHP Constants Manager up to WordPress 7.1.5, the latest release. It requires WordPress 5.0 or newer.

What PHP version does PHP Constants Manager need?

PHP Constants Manager requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was PHP Constants Manager last updated?

The latest version, 1.2.2, was released on August 25, 2026 (3 months ago).

Who makes PHP Constants Manager?

PHP Constants Manager is developed and maintained by cartpauj.

What are the best alternatives to PHP Constants Manager?

The most popular alternatives to PHP Constants Manager are Loginizer (1M+ installs), Redux Framework (800K+ installs) and Admin Menu Editor (300K+ installs).

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen