PHP code example of redsys / messages

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

    

redsys / messages example snippets




use Redsys\Messages\Messages;

$all = Messages::getAll(); // Devuelve todos los mensajes
$message = Messages::getByCode('0001'); // Devuelve el mensaje con código
$messages = Messages::getByExp('^SIS'); // Devuelve todos los mensajes que contentan esa expresión