PHP Classes

File: docs/pingIndex.php

Recommend this page to a friend!
  Classes of Kjell-Inge Gustafsson   PHP REST API Server   docs/pingIndex.php   Download  
File: docs/pingIndex.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP REST API Server
REST API server handling requests with callbacks
Author: By
Last change:
Date: 3 years ago
Size: 426 bytes


Class file image Download
 * pingIndex.php
 * @author Kjell-Inge Gustafsson <>
 * Simply checking service is up
 * Open in a web browser http://<host>/<path>/pingIndex.php/ping
 * method 'GET'
 * uri '/ping'
 * Return (array) classname, version and time

namespace Kigkonsult\RestServer;


RestServer())->attachRestService( restServer::getPingServiceDef())->run();