PHP code example of topic-advisor / php-lambda-runtime-api-symfony-handler
1. Go to this page and download the library: Download topic-advisor/php-lambda-runtime-api-symfony-handler library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
topic-advisor / php-lambda-runtime-api-symfony-handler example snippets
#!/opt/bin/php
NV') ?: 'dev';
$debug = getenv('APP_DEBUG') !== false ? ((bool) getenv('APP_DEBUG')) : false;
if ($debug) {
umask(0000);
Symfony\Component\Debug\Debug::enable();
}
$kernel = new AppKernel($env, $debug);
$kernel->boot();
$loop = new TopicAdvisor\Lambda\RuntimeApi\RuntimeApiLoop();
$loop
->setHandlers([
new TopicAdvisor\Lambda\Symfony\Handler\Http\RequestHandler($kernel),
])
->run();