PHP code example of numero2 / contao-xmlrpc

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

    

numero2 / contao-xmlrpc example snippets


RewriteRule xmlrpc\.php system/modules/xmlrpc/xmlrpc\.php [L]

<FilesMatch "xmlrpc.php">
    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresDefault "access"
    </IfModule>
</FilesMatch>

RewriteCond %{REQUEST_URI} wp-admin/post\.php [NC]
RewriteCond %{QUERY_STRING} ^action=edit&post=(.*)
RewriteRule (.*) contao?do=news&table=tl_content&id=%1 [R=301,L]