PHP code example of s1syphos / php-dejure

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

    

s1syphos / php-dejure example snippets




1SYPHOS\DejureOnline;

$object = new DejureOnline();

$object->setEmail('[email protected]');
$object->setTarget('_blank');

$text  = '<div>';
$text .= 'This is a <strong>simple</strong> HTML text.';
$text .= 'It contains legal norms, like Art. 12 GG.';
$text .= '.. or § 433 BGB!';
$text .= '</div>';

echo $object->dejurify($text);
text
composer