PHP code example of coercive / head
1. Go to this page and download the library: Download coercive/head 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/ */
coercive / head example snippets
$head = new Head;
# Meta Title
$head->Title()->setContent('example title');
# Meta Description
$head->Description()->setContent('example description');
# Meta Keywords
$head->Keywords()->setContent('example test');
# Show
echo $head->toHtml();