PHPackages                             alanef/fullworks-template-loader-lib - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. alanef/fullworks-template-loader-lib

ActiveLibrary[Templating &amp; Views](/categories/templating)

alanef/fullworks-template-loader-lib
====================================

Library to load templates for plugins

0206PHPCI passing

Since Apr 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/alanef/fullworks-template-loader-lib)[ Packagist](https://packagist.org/packages/alanef/fullworks-template-loader-lib)[ RSS](/packages/alanef-fullworks-template-loader-lib/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Fullworks Template Loader Library
=================================

[](#fullworks-template-loader-library)

A flexible PHP template loader library for WordPress plugins that allows for loading templates from theme directories with fallback to plugin directories. This library is based on principles similar to the Gamajo Template Loader but with additional improvements.

Installation
------------

[](#installation)

### Composer

[](#composer)

Add the package to your project using Composer:

```
composer require alanef/fullworks-template-loader-lib
```

Or add it manually to your `composer.json`:

```
{
    "require": {
        "alanef/fullworks-template-loader-lib": "^1.0"
    }
}
```

Then run `composer install` or `composer update`.

Usage
-----

[](#usage)

### 1. Create a Template Loader Class

[](#1-create-a-template-loader-class)

Create a class that extends `Fullworks_Template_Loader_Lib\BaseLoader`:

```
