From a149d566fca224e503b7676337486ec2670e6cca Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Fri, 20 Sep 2013 20:15:41 +0200 Subject: List required PHP extensions in 'require' --- bin/package2composer.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin') diff --git a/bin/package2composer.sh b/bin/package2composer.sh index 66d77f623..aa9dffb50 100755 --- a/bin/package2composer.sh +++ b/bin/package2composer.sh @@ -73,6 +73,12 @@ if ($devs = $package->developer) { } } +if ($package->dependencies->required->extension) { + foreach ($package->dependencies->required->extension as $ext) { + $data['require']['ext-' . strval($ext->name)] = '*'; + } +} + // remove empty values $data = array_filter($data); -- cgit v1.2.3