Twig wrapper with extensions (ded)
This repository has been archived on 2024-11-14. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2023-08-24 23:19:22 +00:00
src Documentation adjustment. 2023-08-24 23:19:22 +00:00
tests More convenient constructor for SasaeEnvironment 2023-08-24 22:57:41 +00:00
tools Initial import. 2023-08-24 22:31:36 +00:00
.gitattributes Initial import. 2023-08-24 22:31:36 +00:00
.gitignore Initial import. 2023-08-24 22:31:36 +00:00
composer.json Documentation adjustment. 2023-08-24 23:19:22 +00:00
composer.lock Documentation adjustment. 2023-08-24 23:19:22 +00:00
LICENCE Initial import. 2023-08-24 22:31:36 +00:00
phpdoc.xml Initial import. 2023-08-24 22:31:36 +00:00
phpstan.neon Initial import. 2023-08-24 22:31:36 +00:00
phpunit.xml Initial import. 2023-08-24 22:31:36 +00:00
README.md Initial import. 2023-08-24 22:31:36 +00:00
VERSION Fixed type error. 2023-08-24 23:00:41 +00:00

Sasae

Sasae is a simple wrapper around some of Twig's functionality as well as making Twig\Environment a little bit more immutable.

While it's not a lot of extras, I often implement the added functionality across projects. The source file structure is meant to be similar to Twig's own.

Requirements and Dependencies

Sasae currently targets PHP 8.2.

No additional requirements and/or dependencies at this time.

Versioning

Sasae versioning will follows the Semantic Versioning specification v2.0.0.

Changes to minimum required PHP version, major Twig library releases that cause incompatibilities and other major overhauls to Sasae itself that break compatibility will be reasons for incrementing the major version. Updates to Sasae functionality or adjustments to fit new Twig functionality will cause increment the minor version. Bug fixes and inconsequential Twig library updates will increment the patch version.

Sasae also depends on Index, but its versioning depends on the minimum PHP version and should thus be fairly inconsequential.

Previous major versions may be supported for a time with backports depending on what projects of mine still target older versions of PHP.

The version is stored in the root of the repository in a file called VERSION and can be read out within Sasae using Sasae\SasaeEnvironment::getSasaeVersion().

Contribution

By submitting code for inclusion in the main Sasae source tree you agree to transfer ownership of the code to the project owner. The contributor will still be attributed for the contributed code, unless they ask for this attribution to be removed. This is to avoid intellectual property rights traps and drama that could lead to blackmail situations. If you do not agree with these terms, you are free to fork off.

Licencing

Sasae is available under the BSD 3-Clause Clear License, a full version of which is enclosed in the LICENCE file.