Skip to content

Coole is a PHP framework built on open source components. - Coole 是一个基于开源组件包构建的 PHP 框架。

License

Notifications You must be signed in to change notification settings

guanguans/coole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coole

Coole is a PHP framework built on open source components. - Coole 是一个基于开源组件构建的 PHP 框架。

简体中文 | ENGLISH

tests check & fix styling codecov Latest Stable Version Total Downloads License Join the chat at https://gitter.im/guanguans/coole

Documentation

www.guanguans.cn/coole

Life cycle

Life cycle

Requirement

  • PHP >= 7.3

Installation

$ composer require guanguans/coole -vvv

Quick start

<?php

use Coole\Foundation\App;
use Coole\Routing\Facades\Router;
use Symfony\Component\HttpFoundation\Request;

require __DIR__.'/vendor/autoload.php';

// 1. Create App.
$app = new App();
$app['debug'] = true;

// 2. Add route with closure middleware.
Router::get('/', function (){
    return 'This is the Coole framework.';
})->setMiddleware(function (Request $request, Closure $next){
    $response = $next($request);
    $response->headers->set('X-Coole-Version', App::version());

    return $response;
});

// 3. Run service.
$app->run();

Testing

$ composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

Thanks

jetbrains

License

The MIT License (MIT). Please see License File for more information.

About

Coole is a PHP framework built on open source components. - Coole 是一个基于开源组件包构建的 PHP 框架。

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published