PHP code example of flyskypie / regulation-odt

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

    

flyskypie / regulation-odt example snippets


$regulationArray = [
    'Chapter 1' => [
        'Article 1' => [
            'Paragraph 1' => [
                'Subsection 1' => [
                    'Item 1' => [
                        'Item 1-1' => []
                    ]
                ]
            ]
        ],
        'Article 1' => []
    ]
];

use FlySkyPie\RegulationODText\ODText;
$document = new ODText();
$document->setName('Name of Ragulation');
$document->setHistories(['amendment event', 'amendment event']);
$document->setCaptered(true);
$document->setRagulations($regulationArray);

$array = [
  'Article 1' => [],
  'Article 2' => [],
  'Article 3' => [],
  'Article 4' => []
  ];