in this component we are responsible the community of our company .
1-you should run apache server and mysql ,so install Xampp.
2-install composer.
Use the framework slim to install slim.
php composer-setup.php --install-dir=bin
composer require slim/slim "^3.12"
composer create-project --prefer-dist laravel/laravel myProjectName
<?php
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Message\ResponseInterface as Response;
require 'vendor/autoload.php';
$app = new \Slim\App;
$app->get('/hello/{name}', function (Request $request, Response $response, array $args) {
$name = $args['name'];
$response->getBody()->write("Hello, $name");
return $response;
});
$app->run();
Pull requests are welcome for every one in the company-2 For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.