1. Go to this page and download the library: Download bref/extra-php-extensions 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/ */
bref / extra-php-extensions example snippets
cli
composer
yaml
# serverless.yml
service: app
provider:
name: aws
region: us-east-1
plugins:
- ./vendor/bref/bref
- ./vendor/bref/extra-php-extensions # <----- Add the extra Serverless plugin
functions:
console:
handler: bin/console
runtime: php-81
layers:
- ${bref-extra:amqp-php-81} # <----- Example for AMQP layer
ini
;php/conf.d/blackfire.ini
blackfire.agent_socket = tcp://ip-172-40-40-40.eu-central-1.compute.internal:8307
blackfire.agent_timeout = 0.25