PHP code example of webfarben / contao-news-import

1. Go to this page and download the library: Download webfarben/contao-news-import 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/ */

    

webfarben / contao-news-import example snippets

bash
php vendor/bin/contao-console contao:legacy-news:import \
   --archive-id=3 \
   --archive-id=8 \
   --since=2024-01-01 \
   --until=2024-12-31