Mike42\Escpos\EscposImage::isImagickLoaded PHP Method

isImagickLoaded() public static method

public static isImagickLoaded ( ) : boolean
return boolean True if Imagick is loaded, false otherwise
    public static function isImagickLoaded()
    {
        return extension_loaded('imagick');
    }

Usage Example

Example #1
0
 public function __construct()
 {
     if (!EscposImage::isImagickLoaded()) {
         throw new Exception("ImagePrintBuffer requires the imagick extension");
     }
     $this->font = null;
     $this->fontSize = 24;
 }
All Usage Examples Of Mike42\Escpos\EscposImage::isImagickLoaded