Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Jinja Php Laravel Package

codewithkyrian/jinja-php

View on GitHub
Deep Wiki
Context7
v2.1.0

What's Changed

New Contributors

Full Changelog: https://github.com/CodeWithKyrian/jinja-php/compare/2.0.0...2.1.0

2.0.0

What's New

Core Language Features

  • Added macro support with {% macro %} and {% endmacro %} blocks
  • Added break and continue statement support for loops
  • Added ternary expressions and improved if-else parsing with elif support
  • Added spread expressions (*args) for function argument unpacking
  • Added comment support with {# #} syntax
  • Added null literal support (none, None)

Template Processing

  • Added custom transformers-specific generation tag support
  • Added string concatenation operator (~) and multiple string literal support
  • Enhanced set statements with body support and {% endset %} blocks
  • Added for-else loops with {% else %} blocks

String Manipulation

  • Added new filters: capitalize, replace, split with maxsplit, join
  • Enhanced startswith/endswith filters with tuple argument support
  • Added items, keys, values methods for object iteration
  • Added trimming functions: strip, lstrip, rstrip

Data Processing

  • Added Python-style negative array indexing (e.g., messages[-1])
  • Added new filters: tojson, map, indent
  • Added proper numeric type handling with IntegerValue and FloatValue
  • Added support for both lowercase and uppercase boolean literals

Fixes

  • Fixed undefined array key errors in parser and lexer with proper bounds checking
  • Improved error messages and exception handling throughout
  • Enhanced parser architecture with better statement detection
  • Added JsonSerializable interface to runtime values

Breaking Changes

None - all changes are backward compatible.

New Contributors

Full Changelog: https://github.com/CodeWithKyrian/jinja-php/compare/1.0.0...2.0.0

v1.0.0

Initial Release

  • Jinja Syntax Support - It supports most of the Jinja Syntax
  • ML Chat Templates Ready - It has been tested against most of the Chat Templates on HuggingFace
  • General Templating: It is versatile enough to be used for regular templating tasks.

Full Changelog: https://github.com/CodeWithKyrian/jinja-php/commits/1.0.0

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity