PHPackages                             inpsyde/plugin-templating-utils - 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. inpsyde/plugin-templating-utils

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

inpsyde/plugin-templating-utils
===============================

Provides utility functions for templating functionality in plugins.

0.3.0(1y ago)1523.9k↓50%3[1 PRs](https://github.com/inpsyde/plugin-templating-utils/pulls)MITPHPPHP &gt;=5.6

Since Jul 24Pushed 1y ago3 watchersCompare

[ Source](https://github.com/inpsyde/plugin-templating-utils)[ Packagist](https://packagist.org/packages/inpsyde/plugin-templating-utils)[ RSS](/packages/inpsyde-plugin-templating-utils/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

Plugin Templating Utils
=======================

[](#plugin-templating-utils)

> A Composer package that provides utility functions to templating functionality in plugins..

---

Functions
---------

[](#functions)

### `Inpsyde\plugin_file_base_dir()`

[](#inpsydeplugin_file_base_dir)

Given a file a file inside a plugin directory, no matter how deep in the directory three, returns the absolute path to root directory of the plugin.

### `Inpsyde\plugin_template_part()`

[](#inpsydeplugin_template_part)

Similar to `get_template_part()` loads a template from a plugin directory. The plugin folder where to search is obtained from first argument, that can be a file in the target plugin directory, no matter how deep in the directory three.

Templates to be searched pass through `'plugin_template_part_templates'` filter.

### `Inpsyde\find_plugin_template_part()`

[](#inpsydefind_plugin_template_part)

Similar to `plugin_template_part()` (also trigger same filter) it returns the path of found template instead of including it.

### `Inpsyde\plugin_file_path()`

[](#inpsydeplugin_file_path)

Similar to `get_theme_file_path()` returns the path of a file inside a plugin directory. The target plugin is obtained from first argument, that can be a file in the target plugin directory, no matter how deep in the directory three.

Returns empty string if the file does not exists.

Returned value passes through `'plugin_file_path'` filter.

### `Inpsyde\plugin_file_uri()`

[](#inpsydeplugin_file_uri)

Similar to `get_theme_file_uri()` returns the URL of a file inside a plugin directory. The target plugin is obtained from first argument, that can be a file in the target plugin directory, no matter how deep in the directory three.

Returns empty string if the file does not exists.

Returned value passes through `'plugin_file_uri'` filter.

### `Inpsyde\plugin_template_part_fallback()`

[](#inpsydeplugin_template_part_fallback)

Like `Inpsyde\plugin_template_part()` but fallbacks to theme (or child theme) if file is not found in plugin.

### `Inpsyde\plugin_file_path_fallback()`

[](#inpsydeplugin_file_path_fallback)

Like `Inpsyde\plugin_file_path()` but fallbacks to theme (or child theme) if file is not found in plugin.

### `Inpsyde\plugin_file_uri_fallback()`

[](#inpsydeplugin_file_uri_fallback)

Like `Inpsyde\plugin_file_uri()` but fallbacks to theme (or child theme) if file is not found in plugin.

---

Requirements
------------

[](#requirements)

- PHP 5.6+
- Composer to install

---

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

[](#installation)

Via Composer, package name is **`inpsyde/plugin-templating-utils`**.

---

License and Copyright
---------------------

[](#license-and-copyright)

Copyright (c) 2017 Inpsyde GmbH.

"Plugin Templating Utils" code is licensed under [MIT license](https://opensource.org/licenses/MIT).

The team at [Inpsyde](https://inpsyde.com) is engineering the Web since 2006.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~834 days

Total

4

Last Release

716d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2208282?v=4)[Giuseppe Mazzapica](/maintainers/gmazzap)[@gmazzap](https://github.com/gmazzap)

![](https://www.gravatar.com/avatar/003585053f7d5d2127d31d5a4e79ba309acc075154f5752de8f429ac42c54dbe?d=identicon)[Syde](/maintainers/Syde)

---

Top Contributors

[![gmazzap](https://avatars.githubusercontent.com/u/2208282?v=4)](https://github.com/gmazzap "gmazzap (12 commits)")

---

Tags

php7templatewordpress

### Embed Badge

![Health badge](/badges/inpsyde-plugin-templating-utils/health.svg)

```
[![Health](https://phpackages.com/badges/inpsyde-plugin-templating-utils/health.svg)](https://phpackages.com/packages/inpsyde-plugin-templating-utils)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
