Subject: [PATCH v3 18/96] gnu: Add php-nikic-php-parser.

From: Nicolas Graves <[email-masked]>
Date: Mon, 7 Oct 2024 01:59:13 +0200

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

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

diff --git a/gnu/packages/php-xyz.scm b/gnu/packages/php-xyz.scm
index b6cca38f25..faa9b75f23 100644
--- a/gnu/packages/php-xyz.scm
+++ b/gnu/packages/php-xyz.scm
@@ -465,3 +465,25 @@ (define-public php-myclabs-deep-copy
     (home-page "https://github.com/myclabs/DeepCopy")
     (license license:expat)))
 
+(define-public php-nikic-php-parser
+  (package
+    (name "php-nikic-php-parser")
+    (version "4.17.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/nikic/PHP-Parser")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1zwcdsgkhg41y2fmqm6jsp91rwgklz1fg09zwayfp43mx7hicq2h"))))
+    (build-system composer-build-system)
+    (native-inputs
+     (list php-phpunit-phpunit))
+    (synopsis "PHP parser written in PHP")
+    (description "This package provides a PHP parser written in PHP, to
+simplify static code analysis and manipulation.")
+    (home-page "https://github.com/nikic/PHP-Parser")
+    (license license:bsd-3)))
+
-- 
2.46.0