for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* ToastrLibrary.php
*
* Adapter for the Toastr library.
* @package jaxon-dialogs
* @author Thierry Feuzeu <[email protected]>
* @copyright 2016 Thierry Feuzeu <[email protected]>
* @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
* @link https://github.com/jaxon-php/jaxon-dialogs
*/
namespace Jaxon\Dialogs\Dialog\Library;
use Jaxon\Dialogs\Dialog\AbstractLibrary;
use Jaxon\App\Dialog\Library\AlertInterface;
class Toastr extends AbstractLibrary implements AlertInterface
{
* @const The library name
const NAME = 'toastr';
* @inheritDoc
public function getName(): string
return self::NAME;
}
public function getUri(): string
return '//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest';
public function getJs(): string
return $this->helper()->getJsCode('js/toastr.min.js');
public function getCss(): string
return $this->helper()->getCssCode('css/toastr.min.css');
public function getReadyScript(): string
return $this->helper()->render('toastr.js');