PHP code example of struktal / struktal-api
1. Go to this page and download the library: Download struktal/struktal-api 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/ */
struktal / struktal-api example snippets
\struktal\API\API::sendJson([
"field1" => "value1",
"field2" => "value2"
]);
\struktal\API\API::sendWrappedJson([
"field1" => "value1",
"field2" => "value2"
], \struktal\API\HTTPResponse::OK);