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

Twig Template Engine Laravel Package

memio/twig-template-engine

Twig template engine integration for Memio: render Memio documents using Twig, enabling customizable code generation and templated output. Provides a bridge between Memio’s model-driven generators and Twig’s flexible templating system.

View on GitHub
Deep Wiki
Context7
v3.0.3

Fully update templates and Type extension to work with memio/model v3 changes:

  • Public properties instead of getter methods
  • Type stored as Type object instead of string
v4.0.0
  • dropped support for PHP < 8.0
  • dropped support for twig < 3.0
v3.0.2
  • setup Github Actions
  • changed tooling from scripts to Makefile
  • installed phpstan as a dev depdendency
  • installed swiss-knife as a dev depdendency
  • installed rector as a dev depdendency
  • upgraded PHP CS fixer to v2.19.3
  • dockerized for local development
v3.0.1
  • fixed templates
v3.0.0
  • dropped support for PHP < 7.2
  • added support for PHP 8
  • added support for phpspec 7
v2.0.2

Thanks to @sjokki who:

  • Added return type template for interface methods, making pure_virtual.twig similar to method.twig
  • Filtered the namespace of method return types, making the return type filtered in the same way as method argument types
  • Checked for nullable when filtering namespaces, making filter_namespace() was compatible with nullable types

Before:

?Vendor\Project\MyClass became just MyClass
?DateTime stayed ?DateTime

After:

?Vendor\Project\MyClass becomes ?MyClass
?DateTime stays ?DateTime
v2.0.1

Added support for PHP 7.2, thanks to @roukmoute

BC break: Object has be renamed to Objekt, has it is a reserved keyword.

v2.0.0
v2.0.0-alpha3
  • added support for Twig 2
v1.2.7
  • added support for Twig 2
v2.0.0-alpha2
  • fixed method opening curly brace
  • fixed property collection
v1.2.6
  • fixed missing empty line abovr namespace
v1.2.5
  • added support for PHP 7
v1.2.4
  • custom templates now have a higher priority
v1.2.3
  • do not generate namespace statement if not set
v1.2.1
  • fixed return tag
v1.2.0
  • updated dependency on memio/model to v1.3
v1.1.1
  • actually merged the PR about the new PHPdoc tags
v1.1.0
  • added abstract class
  • added return PHPdoc tag
  • added throws PHPdoc tag
v1.0.2
  • fixed Locate namespace
v1.0.1
  • fixed version in README
v1.0.0
  • updated documentation
v1.0.0-rc1
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.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope