Download the PHP package parteieuropa/wordpress-api without Composer
On this page you can find all versions of the php package parteieuropa/wordpress-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download parteieuropa/wordpress-api
More information about parteieuropa/wordpress-api
Files in parteieuropa/wordpress-api
Package wordpress-api
Short Description A PHP SDK for interacting with the WordPress REST API
License MIT
Informations about the package wordpress-api
WordPress API SDK
A modern PHP SDK for interacting with the WordPress REST API. This SDK provides a clean, object-oriented interface for fetching posts, pages, menus, and other WordPress content with full pagination support.
📘 Full documentation & API reference — auto-generated from source, always up to date.
Running a headless WordPress back end? This SDK pairs with the Headless WordPress Manager plugin — it disables the WordPress front end, rewrites every view link to your decoupled site and adds a signed preview endpoint that this SDK can consume. Either can be used on its own.
Installation
Install via Composer from Packagist:
Requires PHP 8.0 or higher.
Quick Start
Features
- Posts & Pages: Fetch, filter, sort and paginate with a fluent query builder
- Menus: List menus, fetch items, build hierarchical menu trees
- Settings & Homepage: Read site configuration, intelligently resolve the homepage
- Search: Full-text search across posts, pages, and multiple content types
- Polylang Support: Filter posts and pages by language
- Pagination: Built-in pagination with automatic link handling
- Type Safety: Full PHP 8 type hints and return types
- Well Tested: 104 unit & integration tests
Documentation
Detailed guides live in docs/:
- Architecture
- Usage
- Authentication
- Settings
- Homepage
- Menus
- Search
- Polylang Integration
- Testing & Development
- API Reference (cheat sheet)
- Roadmap
The full class/method reference (generated from PHPDoc via phpDocumentor) is published at die-partei-in-europa.github.io/wordpress-api.
Testing
See docs/testing.md for the full setup.
License
MIT — see LICENSE.