1. Go to this page and download the library: Download alaureati-enerds/replio 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/ */
alaureati-enerds / replio example snippets
use Replio\Replio;
$replio = new Replio();
$replio->success('Operazione completata con successo!', ['key' => 'value'])
->send();
use Replio\Replio;
$replio = new Replio();
$replio->error('Errore nella richiesta', Replio::HTTP_BAD_REQUEST, ['campo' => 'Errore dettagliato'])
->send();
use Replio\Replio;
$replio = new Replio();
$replio->withData(['chiave' => 'valore'])
->withStatus(Replio::HTTP_CREATED)
->withHeaders(['X-Custom-Header' => 'Valore personalizzato'])
->send();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.