$theme = wp_get_theme(); echo 'Theme Name: ' . $theme->name;
use Illuminate\Support\Facades\Theme; $theme = Theme::make('my-theme'); echo 'Theme Name: ' . $theme->getName();
use Symfony\Component\Templating\Theme\ThemeInterface; class MyTheme implements ThemeInterface { // theme properties and methods here }Package Library: The package library used for the Theme instance will depend on the framework or CMS being used. Some examples include WordPress, Laravel, Symfony, Drupal, and Joomla. These packages provide the necessary classes and functions for working with themes in those respective systems.