Subject: [PATCH v4 94/98] gnu: Add php-twig-twig.

From: Nicolas Graves <[email-masked]>
Date: Mon, 7 Oct 2024 23:45:02 +0200

* gnu/packages/php-xyz.scm (php-twig-twig): New variable.

Change-Id: I4f0f48269676a31ced17c4705eac239752ac9421
---
 gnu/packages/php-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/php-xyz.scm b/gnu/packages/php-xyz.scm
index 6f10eb976e..a45eae341c 100644
--- a/gnu/packages/php-xyz.scm
+++ b/gnu/packages/php-xyz.scm
@@ -2528,3 +2528,29 @@ (define-public php-theseer-tokenizer
     (home-page "https://github.com/theseer/tokenizer")
     (license license:bsd-3)))
 
+(define-public php-twig-twig
+  (package
+    (name "php-twig-twig")
+    (version "3.7.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/twigphp/Twig")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "16bf5n29j4pa98h35hnx14d6fch4f9va92vvm1j1l4n7gm63p3kl"))))
+    (build-system composer-build-system)
+    (inputs
+     (list php-symfony-polyfill-mbstring php-symfony-polyfill-ctype))
+    (native-inputs
+     (list php-phpunit-phpunit
+           php-symfony-phpunit-bridge
+           php-psr-container))
+    (synopsis "Template language for PHP")
+    (description
+     "This package provides a flexible template language for PHP.")
+    (home-page "https://twig.symfony.com")
+    (license license:bsd-3)))
+
-- 
2.46.0