imponeer/smarty-extensions-contracts

Interfaces for defining smarty template engine extensions in object way

v3.0.2 2023-10-01 11:37 UTC

This package is auto-updated.

Last update: 2024-10-31 11:49:11 UTC


README

License GitHub release Maintainability PHP Packagist

Smarty Extensions Contracts

Smarty 3 still doesn't use classes for define most of the possible extensions types. This library tries to fix that - it provides all needed interfaces to define extensions in object way.

Defining smarty extensions in object way also can be useful when working with containers. Smarty extensions that could be registered with tags and then loaded when needed.

Installation

To install and use this package, we recommend to use Composer:

composer require imponeer/smarty-extensions-contracts

Otherwise, you need to include manually files from src/ directory.

Mapping

How to contribute?

If you want to add some functionality or fix bugs, you can fork, change and create pull request. If you not sure how this works, try interactive GitHub tutorial.

If you found any bug or have some questions, use issues tab and write there your questions.