PHP code example of earthit / paxml

1. Go to this page and download the library: Download earthit/paxml 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/ */

    

earthit / paxml example snippets


<p>Hi my name is  echo htmlspecialchars($name); 

$value = ['p', 'Hi my name is ', $name];

EarthIT_PAXML::emit($value);

$blob = new EarthIT_PAXML_PAXMLBlob($value);

['p', 'style'=>'color: green', 'I like ', ['span', 'style'=>'color: red', 'food'], '.']