TwistPHP Documentation

isInstalled

File path: dist/twist/Core/Models/Package.model.php
Namespace: Twist\Core\Models
Extends:

isInstalledCheck to see if a package is installed on the framework by its package slug (lowercase package folder name)

Parameters

Name Type Description
$strPackageSlugstringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strPackageSlug 'foo';

//Call the function isInstalled with the example vars
$resPackage = new \Twist\Core\Models\Package();
$resPackage -> isInstalled($strPackageSlug);