{"id":50962093,"url":"https://github.com/ahegyes/wordpress-framework","last_synced_at":"2026-06-18T15:02:52.776Z","repository":{"id":354402086,"uuid":"1223450043","full_name":"ahegyes/wordpress-framework","owner":"ahegyes","description":"DWS v2 WordPress framework — monorepo for bootstrap + core + utilities + woocommerce packages. Auto-splits to wp-framework-* mirrors.","archived":false,"fork":false,"pushed_at":"2026-06-14T06:43:32.000Z","size":868,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"trunk","last_synced_at":"2026-06-14T08:18:54.322Z","etag":null,"topics":["composer","dws-framework","monorepo","php","wordpress","wordpress-framework","wordpress-plugin-development"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahegyes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-28T10:35:56.000Z","updated_at":"2026-06-14T06:43:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ahegyes/wordpress-framework","commit_stats":null,"previous_names":["ahegyes/wordpress-framework"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ahegyes/wordpress-framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahegyes%2Fwordpress-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahegyes%2Fwordpress-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahegyes%2Fwordpress-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahegyes%2Fwordpress-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahegyes","download_url":"https://codeload.github.com/ahegyes/wordpress-framework/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahegyes%2Fwordpress-framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34495380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","dws-framework","monorepo","php","wordpress","wordpress-framework","wordpress-plugin-development"],"created_at":"2026-06-18T15:02:51.423Z","updated_at":"2026-06-18T15:02:52.762Z","avatar_url":"https://github.com/ahegyes.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wordpress-framework\n\nA modern, modular framework for building WordPress plugins. Composer-only library, distributed under GPL-2.0-or-later.\n\n## Architecture\n\nMonorepo publishing seven Composer packages:\n\n| Package                            | Purpose                                                                          | PHP min |\n| ---------------------------------- | -------------------------------------------------------------------------------- | ------- |\n| `ahegyes/wp-framework-bootstrap`   | Pre-autoload PHP/WP version check with graceful admin-notice fallback.           | 5.6     |\n| `ahegyes/wp-framework-shared`      | Substrate primitives: result/value-object patterns, error/exception scaffolding. | 8.5     |\n| `ahegyes/wp-framework-storage`     | Key-value storage backends: in-memory, wp_options, and user-meta.                | 8.5     |\n| `ahegyes/wp-framework-core`        | Plugin kernel, lifecycle and state interfaces, two-pass boot dispatch.           | 8.5     |\n| `ahegyes/wp-framework-utilities`   | Hooks, admin notices, caching, and conditionals.                                 | 8.5     |\n| `ahegyes/wp-framework-settings`    | Declarative settings screens; WordPress options and object-field backends.       | 8.5     |\n| `ahegyes/wp-framework-woocommerce` | WooCommerce settings backend and WC-aware helpers.                               | 8.5     |\n\nThe `bootstrap` package runs before any modern PHP 8.5+ code parses, so consumer plugins on incompatible runtimes get a graceful admin notice instead of a fatal error.\n\n## Requirements\n\n- **PHP**: 8.5+ (the bootstrap package itself is PHP 5.6-compatible)\n- **WordPress**: 7.0+\n- **Docker**: required for integration tests (via wp-env)\n- **Node.js**: 26+ (for wp-env CLI)\n\n## Local development\n\n```bash\ncomposer packages-install   # PHP deps (wraps composer install with --ignore-platform-reqs)\nnpm install                 # Node deps (wp-env)\nnpm run wp-env:start        # Start Docker WP environment (~40s first time)\ncomposer quality-check      # Fast: lint + unit tests (no Docker)\ncomposer test:integration   # Real WP via wp-env\ncomposer quality-check:all  # Full: lint + unit + integration + mutation\nnpm run wp-env:stop         # Stop wp-env when done\n```\n\n\u003e Always use `composer packages-install` / `composer packages-update` (not bare `composer install` / `update`). The wrappers pass `--ignore-platform-reqs` so composer skips generating `vendor/composer/platform_check.php`, which would otherwise bypass the framework's own `check-requirements.php` runtime check and emit a hard PHP fatal instead of the friendly admin notice.\n\n## Composer scripts\n\n| Script                | Runs                            | Docker |\n| --------------------- | ------------------------------- | ------ |\n| `test:unit`           | Unit tests (no WP)              | No     |\n| `test:integration`    | Integration tests inside wp-env | Yes    |\n| `test:mutation`       | Infection mutation tests        | No     |\n| `test`                | Unit + Integration              | Yes    |\n| `test:all`            | Unit + Integration + Mutation   | Yes    |\n| `lint:php`            | PHPCS + PHPStan + Deptrac       | No     |\n| `format:php`          | Auto-fix code style (PHPCBF)    | No     |\n| `quality-check`       | Lint + Unit                     | No     |\n| `quality-check:all`   | Lint + All tests                | Yes    |\n\n## Testing strategy\n\n- **Unit tests** (`packages/*/tests/Unit/`) — pure PHP, no WP loaded. Used to test wrapper \"outside WP\" fallback paths (e.g., `is_php_compatible` correctly returns `false` when WordPress's native function is missing).\n- **Integration tests** (`packages/*/tests/Integration/`) — run inside wp-env's `cli` container with full WordPress loaded. Real `WP_Error`, `get_plugin_data`, `add_action`, etc.\n- **Mutation tests** — Infection validates test-suite quality.\n\nBoth unit and integration test suites share a single `tests/bootstrap.php` that conditionally loads WordPress when running inside the wp-env container.\n\n## History\n\nThis framework is a ground-up rewrite of the DWS WordPress framework v1, developed at Deep Web Solutions GmbH (now defunct). v1 spread across 7 archived packages (`wordpress-framework-{bootstrapper,helpers,core,utilities,settings,woocommerce,foundations}`) under the [`deep-web-solutions` GitHub org](https://github.com/orgs/deep-web-solutions/repositories?q=wordpress-framework). v2 reorganizes into 7 packages with composition over inheritance, PSR-11 wiring throughout, and a clear substrate-vs-WP-aware boundary between `shared` and the rest.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahegyes%2Fwordpress-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahegyes%2Fwordpress-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahegyes%2Fwordpress-framework/lists"}