This API returns user information including email, current datetime, and GitHub repository URL.
- GET
http://localhost:8000/index.php.
JSON format
{
"email" => "jnr0.mubarak@gmail.com",
"current_datetime" => getCurrentDatetime(),
"github_url" => "https://github.com/muby09?tab=HNG12"
}
Install Xampp
Copy project to htdocs
Run Locally using tools like Postman or directly in your browser by navigating to http://localhost:8000/index.php.
For more information on PHP development, visit HNG PHP Developers.