https://github.com/getpinga/vizima
Vizima is a high-performance API micro-framework designed to help you create powerful APIs in PHP. This project is a port of the popular Mark framework to Swoole.
https://github.com/getpinga/vizima
api fast php swoole
Last synced: 9 months ago
JSON representation
Vizima is a high-performance API micro-framework designed to help you create powerful APIs in PHP. This project is a port of the popular Mark framework to Swoole.
- Host: GitHub
- URL: https://github.com/getpinga/vizima
- Owner: getpinga
- License: mit
- Created: 2023-03-14T14:51:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-18T14:19:47.000Z (over 3 years ago)
- Last Synced: 2025-10-13T04:09:13.478Z (9 months ago)
- Topics: api, fast, php, swoole
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vizima
[](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)
[](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)
Vizima is a high-performance API micro-framework designed to help you create powerful APIs in PHP. This project is a port of the popular [Mark](https://github.com/passwalls/mark) framework to Swoole.
## Install
```
composer require pinga/vizima
```
## Usage
```php
# start.php
get('/', function() {
return '
Hello, world!
';
});
$app->get('/hello/{name}', function (Swoole\Http\Request $request, $name) {
return "Hello $name";
});
$app->post('/user/create', function () {
return json_encode(['code'=>0 ,'message' => 'ok']);
});
$app->start();
```
Run command ```php start.php```
Going to http://127.0.0.1:3000/hello/world will now display "Hello world".
## Benchmark
```
Thread Stats Avg Stdev Max +/- Stdev
Latency 3.07ms 4.27ms 92.46ms 92.61%
Req/Sec 2.56k 801.21 17.84k 67.79%
1221250 requests in 30.10s, 203.82MB read
Requests/sec: 40575.11
Transfer/sec: 6.77MB
```
## Support
If you have any problems, do not heasitate to open an Issue.