PHP code example of sniels / laravel-mollie4

1. Go to this page and download the library: Download sniels/laravel-mollie4 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/ */

    

sniels / laravel-mollie4 example snippets

 php
    // List Methods
    $methods = \Mollie::getMethods()->all();

    foreach ($methods as $method)
    {
        echo '<div style="line-height:40px; vertical-align:top">';
        echo '<img src="' . htmlspecialchars($method->image->normal) . '"> ';
        echo htmlspecialchars($method->description);
        echo ' (' .  htmlspecialchars($method->id). ')';
        echo '</div>';
    }