Awesome Open Source
Awesome Open Source

Mark is a high performance micro framework based on workerman helps you quickly write APIs with php.

Probably the fastest PHP web framework in the world. See the-benchmarker.


It's recommended that you use Composer to install Mark.

composer require mark-php/mark



use Mark\App;

require 'vendor/autoload.php';

$api = new App('');

$api->count = 4; // process count

$api->any('/', function ($requst) {
    return 'Hello world';

$api->get('/hello/{name}', function ($requst, $name) {
    return "Hello $name";

$api->post('/user/create', function ($requst) {
    return json_encode(['code'=>0 ,'message' => 'ok']);


Run command php start.php start -d

Going to will now display "Hello world".


Available commands

php start.php restart -d
php start.php stop
php start.php status
php start.php connections


The Mark Framework is licensed under the MIT license. See License File for more information.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Php (402,785
Api (21,734
Fast (1,150
Related Projects