PHP code example of imdigital / magento-serverless
1. Go to this page and download the library: Download imdigital/magento-serverless 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/ */
imdigital / magento-serverless example snippets
declare(strict_types=1);
namespace ImDigital\Serverless\Api\Data;
interface CloudProviderInterface
{
/**
* @param ServerlessFunctionInterface $serverlessFunction
* @param array $data
* @throws \Exception
* @return void
*/
public function execute(ServerlessFunctionInterface $serverlessFunction, array &$data): void;
/**
* @param ServerlessFunctionInterface $serverlessFunction
*/
public function getCloudConfig(ServerlessFunctionInterface $serverlessFunction);
}
ssh
php bin/magento serverless:deploy:config
ssh
php bin/magento module:enable ImDigital_Serverless