PHP code example of davidt-de / kirby-uniform-mosparo

1. Go to this page and download the library: Download davidt-de/kirby-uniform-mosparo 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/ */

    

davidt-de / kirby-uniform-mosparo example snippets




return [
    // Mosparo Configuration
    'davidt-de.uniform-mosparo.host' => 'https://your-project.mosparo.io',
    'davidt-de.uniform-mosparo.uuid' => 'your-project-uuid',
    'davidt-de.uniform-mosparo.publicKey' => 'your-public-key',
    'davidt-de.uniform-mosparo.privateKey' => 'your-private-key',
];



use Uniform\Form;
use Uniform\Mosparo\Guards\MosparoGuard;

return function ($kirby, $page) {
    $form = new Form([
        'name' => [
            'rules' => ['a valid email',
        ],
        'message' => [
            'rules' => ['xample.com',
                 'from' => '[email protected]',
             ]);
    }

    return compact('form');
};

<form method="POST" action="<?= $page->url()