1 (edited by Hubert.Nodzak 2017-11-14 09:44:19)

Topic: PHP71. and twig

Hello,

what is the best way to install Twig for php 7.1? Have we to compile it from pecl?
Centos 7.

yum list installed | grep php
Repository nodesource is listed more than once in the configuration
Repository nodesource-source is listed more than once in the configuration
php-common.x86_64                   5.4.45-13.el7.remi         @remi
php-fedora-autoloader.noarch        1.0.0-1.el7.remi           @remi
php71-php-cli.x86_64                7.1.11-1.el7.remi          @remi
php71-php-common.x86_64             7.1.11-1.el7.remi          @remi
php71-php-fpm.x86_64                7.1.11-1.el7.remi          @remi
php71-php-gd.x86_64                 7.1.11-1.el7.remi          @remi
php71-php-intl.x86_64               7.1.11-1.el7.remi          @remi
php71-php-json.x86_64               7.1.11-1.el7.remi          @remi
php71-php-mbstring.x86_64           7.1.11-1.el7.remi          @remi
php71-php-mcrypt.x86_64             7.1.11-1.el7.remi          @remi
php71-php-opcache.x86_64            7.1.11-1.el7.remi          @remi
php71-php-pdo.x86_64                7.1.11-1.el7.remi          @remi
php71-php-pecl-apcu.x86_64          5.1.8-1.el7.remi           @remi
php71-php-pecl-apcu-bc.x86_64       1.0.3-6.el7.remi           @remi
php71-php-pecl-imagick.x86_64       3.4.3-5.el7.remi           @remi
php71-php-pecl-mongodb.x86_64       1.3.2-1.el7.remi           @remi
php71-php-pecl-zip.x86_64           1.15.1-1.el7.remi          @remi
php71-php-process.x86_64            7.1.11-1.el7.remi          @remi
php71-php-twig.noarch               1.35.0-1.el7.remi          @remi
php71-php-xml.x86_64                7.1.11-1.el7.remi          @remi
php71-runtime.x86_64                1.0-1.el7.remi             @remi

Output from php -m:

PHP 7.1.11 (cli) (built: Oct 25 2017 10:00:47) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.1.11, Copyright (c) 1999-2017, by Zend Technologies

[PHP Modules]
apc
apcu
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imagick
intl
json
libxml
mbstring
mcrypt
mongodb
openssl
pcntl
pcre
PDO
pdo_sqlite
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

Thank you.
PS Is it possible to install php pecl from remi repo? I want to compile extension from php repo.

Re: PHP71. and twig

See extension list

twig extension doesn't exists for PHP 7.x, but the twig library works without it.

> PS Is it possible to install php pecl from remi repo? I want to compile extension from php repo.

Yes, pecl command is available (php71-php-pear), but which ones do you think you have to build ? (all should already be available)

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: PHP71. and twig

Thank you. I only ask "for future use".

Re: PHP71. and twig

>  I only ask "for future use".

The goal of this repository, is that this will never be needed wink

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi