slimphp framework

时间:2021-04-12 08:55:59
【文件属性】:
文件名称:slimphp framework
文件大小:73KB
文件格式:ZIP
更新时间:2021-04-12 08:55:59
Slim Framework Slim Framework Create an index.php file with the following contents: <?php require 'vendor/autoload.php'; $app = new Slim\App(); $app->get('/hello/{name}', function ($request, $response, $args) { return $response->getBody()->write("Hello, " . $args['name']); }); $app->run(); You may quickly test this using the built-in PHP server: $ php -S localhost:8000 Going to http://localhost:8000/hello/world will now display "Hello, world". For more information on how to configure your web server, see the Documentation. Tests To execute the test suite, you'll need phpunit. $ phpunit
【文件预览】:
Slim-3.x
----Slim()
--------CallableResolverAwareTrait.php(1KB)
--------RouteGroup.php(1KB)
--------CallableResolver.php(3KB)
--------Http()
--------Exception()
--------Router.php(12KB)
--------Route.php(8KB)
--------Handlers()
--------Routable.php(2KB)
--------MiddlewareAwareTrait.php(3KB)
--------Container.php(6KB)
--------Interfaces()
--------Collection.php(4KB)
--------DefaultServicesProvider.php(7KB)
--------DeferredCallable.php(1KB)
--------App.php(23KB)
----LICENSE.md(1KB)
----CODE_OF_CONDUCT.md(1001B)
----composer.json(2KB)

网友评论