topic-advisor / php-lambda-runtime-api-symfony-handler
Symfony handler for the topic-advisor/php-lambda-runtime-api library
Installs: 33 151
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 3
Requires
- php: ^7.3
- php-pm/httpkernel-adapter: ^2.0
- symfony/dependency-injection: ^4.2|^5.0
- symfony/http-foundation: ^3.4|^4.0|^5.0
- symfony/http-kernel: ^3.4|^4.0|^5.0
- symfony/psr-http-message-bridge: ^1.2
- topic-advisor/php-lambda-runtime-api: *
This package is auto-updated.
Last update: 2025-03-29 00:44:47 UTC
README
Symfony handler for the topic-advisor/php-lambda-runtime-api library
Installation
Use composer: composer require topic-advisor/php-lambda-runtime-api-symfony-handler
Usage
#!/opt/bin/php <?php require __DIR__ . '/vendor/autoload.php'; $env = getenv('APP_ENV') ?: '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();