1. Go to this page and download the library: Download ssnepenthe/soter 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/ */
ssnepenthe / soter example snippets
class Sms_Notifier implements Soter\Notifier_Interface {
public function is_enabled() {
// Return boolean indicating whether this notifier is currently enabled.
}
public function notify( Soter_Core\Vulnerabilities $vulnerabilities ) {
// Build and send the message.
}
}
_soter_instance()->extend( 'notifier_manager', function( Soter\Notifier_Manager $manager, Pimple\Container $container ) {
$manager->add( new Sms_Notifier );
return $manager;
} );