Bootstrap the plugin header, autoloader, and PHP 7.4 floor #2

Closed
opened 2026-07-01 01:04:22 +00:00 by manlycucumber · 1 comment
manlycucumber commented 2026-07-01 01:04:22 +00:00 (Migrated from github.com)

Problem

Ordo needs a single entry-point plugin file that WordPress recognizes, with a namespaced PSR-4 autoloader for the plugin's own classes and a hard floor on the supported PHP version. Everything else in v0.1.0 hangs off this bootstrap.

Acceptance criteria

  • A main plugin file declares a valid WordPress plugin header (Name, Version, License GPL-2.0-or-later, Text Domain, Requires PHP 7.4).
  • A Composer/PSR-4 autoloader loads the plugin's own namespace without touching global scope.
  • Activation aborts with an admin notice when PHP is below 7.4 instead of fatal-erroring.
  • The plugin activates and deactivates with no PHP notices or warnings on a clean WP install.

Notes

Version string is the single source of truth read from the plugin header, not duplicated in code.

## Problem Ordo needs a single entry-point plugin file that WordPress recognizes, with a namespaced PSR-4 autoloader for the plugin's own classes and a hard floor on the supported PHP version. Everything else in v0.1.0 hangs off this bootstrap. ## Acceptance criteria - [ ] A main plugin file declares a valid WordPress plugin header (Name, Version, License GPL-2.0-or-later, Text Domain, Requires PHP 7.4). - [ ] A Composer/PSR-4 autoloader loads the plugin's own namespace without touching global scope. - [ ] Activation aborts with an admin notice when PHP is below 7.4 instead of fatal-erroring. - [ ] The plugin activates and deactivates with no PHP notices or warnings on a clean WP install. ## Notes Version string is the single source of truth read from the plugin header, not duplicated in code.
manlycucumber commented 2026-07-03 18:37:03 +00:00 (Migrated from github.com)

Done in #105. Plugin header with GPL-2.0-or-later + Requires PHP 7.4; version read from the header via get_file_data (single source of truth); self-contained PSR-4 autoloader (src/Autoloader.php); activation aborts with an admin notice below PHP 7.4 instead of fatal-erroring; activates/deactivates with no notices.

Done in #105. Plugin header with GPL-2.0-or-later + Requires PHP 7.4; version read from the header via get_file_data (single source of truth); self-contained PSR-4 autoloader (src/Autoloader.php); activation aborts with an admin notice below PHP 7.4 instead of fatal-erroring; activates/deactivates with no notices.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Directorium/Ordo#2
No description provided.