PHP code example of mathsgod / puxt
1. Go to this page and download the library: Download mathsgod/puxt 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/ */
mathsgod / puxt example snippets
use Laminas\Diactoros\Response\HtmlResponse;
return new class{
public function get(){
return new HtmlResponse("Hello world");
}
}
use function PUXT\useHead;
//call this function in the get method of the page
useHead([
"title" => "Custom title",
]);