nafisc / synful
Create simplified custom API's in minutes
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 1
Forks: 0
Open Issues: 0
Type:framework
Requires
- php: >=7.1
- illuminate/database: ^5.6
- illuminate/events: ^5.6
- nafisc/parameterparser: ^0.2.1
- samrap/gestalt: >=0.1.2
- touhonoob/rate-limit: ^1.2
Suggests
- ext-apcu: ^4.0
- dev-master
- v2.1.6
- v2.1.5
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v0.5.1
- v0.5.0
- v0.4.9
- v0.4.8
- v0.4.7
- v0.4.6
- v0.4.5
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.9
- v0.3.8
- v0.3.7
- v0.3.6
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.9
- v0.2.8
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.4
- dev-full-refactor
This package is auto-updated.
Last update: 2020-04-22 19:35:45 UTC
README
This repository has been archived.
What is it?
Synful is a simple PHP framework that gives you the tools to create a custom web API in minutes.
How can I get it?
Head over to The Wiki Pages for information on how to get Synful and what the next steps are to get your custom API up and running!
Benchmark
On a Vagrant box with 4096MB RAM, 4x CPU, running a LAMP stack using the GetIpExample.php
Request Handler.
$ sudo ab -t 60 -c 5 http://127.0.0.1/example/getip
...
Requests per second: 6545.17 [#/sec] (mean)
Preview (RequestHandler)
namespace App\RequestHandlers; use \Synful\Framework\RequestHandler; use \Synful\Framework\Request; /** * Example RequestHandler. */ class GetIPExample extends RequestHandler { /** * Override the handler endpoint * Example: http://myapi.net/user/search * uses the endpoint `user/search`. * * @var string */ public $endpoint = 'example/getip'; /** * Handles a GET request type. * * @param \Synful\Framework\Request $request * @return \Synful\Framework\Response|array */ public function get(Request $request) { return [ 'ip' => $request->ip, ]; } }