PHP code example of elixis-group / google-cloud-queue-process
1. Go to this page and download the library: Download elixis-group/google-cloud-queue-process 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/ */
elixis-group / google-cloud-queue-process example snippets
use GoogleCloudQueueProcess\Handler\CloudTasks\MessageConsumerHandler;
use ACME\ACMEMessageHandler;
$messageConsumer = new MessageConsumerHandler();
$messageHandler = new ACMEMessageHandler();
$request = file_get_contents('php://input');
$messageRequest = $messageConsumer->getRequestContent($request);
$messageConsumer->pushConsumer($messageRequest, $messageHandler);
$ vendor/bin/phpunit tests
$ vendor/bin/php-cs-fixer fix --config .php-cs-fixer.php
$ vendor/bin/phpstan analyse src && vendor/bin/phpstan analyse tests