1. Go to this page and download the library: Download brunocfalcao/zahper 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/ */
brunocfalcao / zahper example snippets
public function __construct()
{
// --- Zahper code ---
ZahperTemplate::$cache = false;
// [...]
// --- /Zahper code ---
}
[...]
->with('mj-button', 'View in Browser')
->href("{{ zhp_url_view_in_browser(\$zhp_uuid) }}")
->target('_blank');
[...]
public function unsubscribe(string $uuid)
{
event(new ZahperUnsubscribeEvent($uuid));
return response('Thank you, you have been unsubscribed!', 200);
}