PHP code example of gravity-ac / amfphp-custom
1. Go to this page and download the library: Download gravity-ac/amfphp-custom 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/ */
gravity-ac / amfphp-custom example snippets
ig = new Amfphp_Core_Config();
$config->serviceFolders = array(dirname(__DIR__) . '/services/');
$config->sharedConfig[Amfphp_Core_Config::CONFIG_RETURN_ERROR_DETAILS] = false;
$config->sharedConfig[Amfphp_Core_Config::CONFIG_MAX_REQUEST_BYTES] = 1024 * 1024;
$config->sharedConfig[Amfphp_Core_Config::CONFIG_REQUIRE_AMF3_ENVELOPE] = true;
$gateway = Amfphp_Core_HttpRequestGatewayFactory::createGateway($config);
$gateway->service();
$gateway->output();