Download the PHP package forgr/v1 without Composer
On this page you can find all versions of the php package forgr/v1. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor forgr
Package v1
Short Description Minimal API-as-a-Service platform - Write functions, register them, use them as APIs
License MIT
Package v1
Short Description Minimal API-as-a-Service platform - Write functions, register them, use them as APIs
License MIT
Please rate this library. Is it a good library?
Informations about the package v1
Forgr - Simple PHP Function-to-API
Turn PHP functions into REST APIs with one line of code.
Write a function, register it, call it as an API.
Quick Example
Call it:
Quick Start
Test the included example:
How It Works
- Create a
.phpfile in theroutes/folder - Write a function that takes
Requestand returnsResponse - Register it:
get('function_name')orpost('function_name') - Call via HTTP with
X-Route: function_nameheader
Registration Functions
Request & Response API
Request Methods
Response Methods
Response Format
Features
- ✅ Zero Configuration - Works immediately
- ✅ Function-based - No classes or frameworks
- ✅ CORS Ready - Frontend integration built-in
- ✅ HTTP Client - Make external API calls with Guzzle
- ✅ Consistent JSON - Structured response format
- ✅ Error Handling - Automatic error responses
Requirements
- PHP 8.1+
- Composer
License
MIT
All versions of v1 with dependencies
PHP Build Version
Package Version
The package forgr/v1 contains the following files
Loading the files please wait ...