Petra
AI assistant for GrootMade
Hi! I'm Petra 👋 Ask me to help you find the perfect WP plugin, theme, or template kit.
forked from WordPress REST API Functions™
WP REST API Functions is not affiliated with WordPress REST API Functions. The name and any related trademarks are used solely for nominative descriptive purposes.
This open-source library enables developers to expose custom PHP functions directly as REST API endpoints. It is designed for developers building custom integrations, headless applications, or needing to add specific server-side logic to their projects without creating traditional plugins or themes.
Custom Endpoint Creation: Place a PHP file with a defined handler function in a specific directory, and it automatically becomes a callable API route.
HTTP Method Support: Each function file can respond to standard HTTP methods including GET, POST, PUT, PATCH, and DELETE, providing flexibility for different operations.
Namespace and Class Support: Organize code using PHP namespaces and classes, allowing for structured and maintainable server-side logic within the API layer.
Configurable Directories: Use filters to modify the default scan directories for function files, offering control over code organization and deployment.
Simple Installation: The package is installed via Composer, integrating cleanly into a project's existing dependency management and workflow.
Version
Original
Updated