Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A minimal, highly performant middleware PSR-15 microframework built with as little complexity as possible, aimed primarily at those developers who want to understand all the vendors they use.

License

NotificationsYou must be signed in to change notification settings

chubbyphp/chubbyphp-framework

Repository files navigation

CICoverage StatusMutation testing badgeLatest Stable VersionTotal DownloadsMonthly Downloads

bugscode_smellscoverageduplicated_lines_densitynclocsqale_ratingalert_statusreliability_ratingsecurity_ratingsqale_indexvulnerabilities

Description

A minimal, highlyperformant middlewarePSR-15 microframework built with as little complexity as possible, aimed primarily at those developers who want to understand all the vendors they use.

Workflow

Requirements

Suggest

Router

Any Router which implementsChubbyphp\Framework\Router\RouteMatcherInterface can be used.

PSR 7 / PSR 17

Installation

ThroughComposer aschubbyphp/chubbyphp-framework.

composer require chubbyphp/chubbyphp-framework"^5.2" \    chubbyphp/chubbyphp-framework-router-fastroute"^2.1" \    slim/psr7"^1.7"

Usage

<?phpdeclare(strict_types=1);namespaceApp;useChubbyphp\Framework\Application;useChubbyphp\Framework\Middleware\ExceptionMiddleware;useChubbyphp\Framework\Middleware\RouteMatcherMiddleware;useChubbyphp\Framework\RequestHandler\CallbackRequestHandler;useChubbyphp\Framework\Router\FastRoute\RouteMatcher;useChubbyphp\Framework\Router\Route;useChubbyphp\Framework\Router\RoutesByName;usePsr\Http\Message\ServerRequestInterface;useSlim\Psr7\Factory\ResponseFactory;useSlim\Psr7\Factory\ServerRequestFactory;require__DIR__.'/vendor/autoload.php';$responseFactory =newResponseFactory();$app =newApplication([newExceptionMiddleware($responseFactory,true),newRouteMatcherMiddleware(newRouteMatcher(newRoutesByName([        Route::get('/hello/{name:[a-z]+}','hello',newCallbackRequestHandler(staticfunction (ServerRequestInterface$request)use ($responseFactory) {$response =$responseFactory->createResponse();$response->getBody()->write(sprintf('Hello, %s',$request->getAttribute('name')));return$response;            }        ))    ]))),]);$app->emit($app->handle((newServerRequestFactory())->createFromGlobals()));

Emitter

Middleware

RequestHandler

Router

Server

Skeleton

Migration

Copyright

2025 Dominik Zogg

About

A minimal, highly performant middleware PSR-15 microframework built with as little complexity as possible, aimed primarily at those developers who want to understand all the vendors they use.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp