Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Pinglet: A lightweight and high-performance PHP microframework framework that combines the simplicity of Slim with the power of Swoole or Swow for lightning-fast web apps.

License

getpinga/pinglet_slim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinglet

Pinglet: A lightweight and high-performance PHP microframework framework that combines the simplicity of Slim with the power of Swoole or Swow for lightning-fast web apps.

With Pinglet, you are free to create high-speed RESTful APIs, CRUD applications, microservices, and control panels.

Pinglet is developed in 2023 by Taras Kondratyuk and based on slim-swoole-project by Oleksii Skorobogatko

Requirements

  • PHP 8.1
  • Swoole or Swow

Installation

Create a project by using composer:

$ composer create-project pinga/pinglet --stability=dev --prefer-source myproject

Configuration

Edit the file env-sample, then rename it to .env

Starting the server

For Swoole:

phpenmod swoole
php bin/swoole.php

For Swow:

phpenmod swow
php bin/swow.php

Benchmark

Swoole

wrk -t16 -c 100 -d 30s http://-.-.-.-:3000/
Running 30s test @ http://-.-.-.-:3000/
  16 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     8.59ms    2.91ms  46.66ms   85.37%
    Req/Sec   705.79    123.21     0.97k    62.77%
  337394 requests in 30.02s, 58.88MB read
Requests/sec:  11237.30
Transfer/sec:      1.96MB

Swow

wrk -t16 -c 100 -d 30s http://-.-.-.-:3000/
Running 30s test @ http://-.-.-.-:3000/
  16 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     6.16ms    7.46ms 321.37ms   99.51%
    Req/Sec     1.04k   116.36     2.27k    77.20%
  494930 requests in 30.04s, 35.40MB read
Requests/sec:  16476.79
Transfer/sec:      1.18MB

About

Pinglet: A lightweight and high-performance PHP microframework framework that combines the simplicity of Slim with the power of Swoole or Swow for lightning-fast web apps.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages