1. Go to this page and download the library: Download jessesoeteman/api-handler 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/ */
if (false) {
$apiHandler->addError("error 1"); // Error wont be added.
}
$apiHandler->APIExitOnError(); // <-- Does not exit because there is no error.
$apiHandler->addData({});
$apiHandler->addData([]);
$apiHandler->addData("Hello World!");
$apiHandler->APIExit(); // <-- Exits here
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.