All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog
and this project adheres to Semantic Versioning.
Detailed changes can see in the repository log.
- Nothing
- Nothing
- Nothing
- Nothing
- Nothing
- Nothing
4.0.0 - 2022-12-10
- PHP 8.2 support
- Bumped minimum PHP version to 8.0
- Various internal improvements
3.0.0 - 2021-07-29
Engine::addPath()
Instead of three arguments of the old addFolder() method (namespace, default folder and search array), two arguments with a folder and optional namespace are used.
- Specifying a namespace now is not mandatory.
If it is not specified, it will be usedmain::
as default. Engine::getFolder()
renamed toEngine::getPath()
- Various code improvements
Engine::addFolder()
TemplateFunftion
class
2.1.0 - 2021-07-28
- PHP 8.x support
- Source code static analysis using Psalm
- Checking coding standards using PHP_CodeSniffer
- Test coverage report and code quality rating using Scrutinizer-CI
- CI services using GitHub Actions
- Used latest version of PhpUnit
- Various code improvements
- Drop support for PHP older than 7.4
2.0.0 - 2019-12-31
- Template::end()
- Template::insert()
1.1.0 - 2019-12-11
- Template::sectionAppend()
- Template::sectionReplace()
- Template::end()
- Template::insert()
1.0.1 - 2019-12-08
- Small internal improvements
1.0.0 - 2019-12-05
The development of this package started on the basis of league/plates v.3.3.0.
The purpose of the development was to simplify the source code as much as possible, get rid of the unnecessary and add the missing functionality.
Here are the most significant changes compared to the original packag.
- Each namespace can have one default (fallback) folder and optional several search folders. The template is searched sequentially across all of these folders, from the last to the first. The first template found will be used. If not found (or not specified), it will use the template specified by default.
- All code rewritten to use PHP 7.2 or newer
- All tests rewritten to use new PhpUnit 8.x
- Specify a namespace and its path is mandatory.
Now you cannot call template without specifying a namespace. - Namespace refactoring
- Folder with example.
- Documentation (After editing will be added again).
- Removed all extensions that were delivered with the package.
- Due to replacement with a new algorithm, removed old fallback folder functionality.
- Removed existing classes and methods:
[D]
completely removed as unnecessary
[C]
covered by new functionality
[S]
replaced with simpler code[S] Directory::class
[S] FileExtension::class
[S] Folder::class
[S] Folders::class
[S] Functions::class
[C] Engine::setDirectory()
[C] Engine::getDirectory()
[D] Engine::removeFolder()
[D] Engine::dropFunction()
[D] Engine::loadExtensions()
[D] Engine::path()
[D] Engine::exists()
[S] Engine::make()
- Some other code that is not used.