I use php on the command line to work with the database and api. So I need php-cli with mysql and curl.
I have many scripts written in php.
I use php on the command line to work with the database and api. So I need php-cli with mysql and curl.
I have many scripts written in php.
You can get a shell with php and curl from your tool with access to all your scripts by running:
tools.dcaro-test11@tools-sgebastion-10:~$ toolforge webservice php8.2 shell tools.dcaro-test11@shell-1710940023:~$ curl --version curl 7.88.1 (x86_64-pc-linux-gnu) libcurl/7.88.1 OpenSSL/3.0.11 zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 libidn2/2.3.3 libpsl/0.21.2 (+libidn2/2.3.3) libssh2/1.10.0 nghttp2/1.52.0 librtmp/2.3 OpenLDAP/2.5.13 Release-Date: 2023-02-20, security patched: 7.88.1-10+deb12u5 Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd tools.dcaro-test11@shell-1710940023:~$ php --version PHP 8.2.7 (cli) (built: Jun 9 2023 19:37:27) (NTS) Copyright (c) The PHP Group Zend Engine v4.2.7, Copyright (c) Zend Technologies with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies tools.dcaro-test11@shell-1710940023:~$ pwd /data/project/dcaro-test11
There's also a php7.4 version available:
tools.dcaro-test11@tools-sgebastion-10:~$ toolforge webservice --help ... Online documentation: https://wikitech.wikimedia.org/wiki/Help:Toolforge/Web Supported webservice types: Kubernetes backend: * bookworm * buildservice * jdk17 * node16 * node18 * perl5.32 * perl5.36 * php7.4 (default) * php8.2 * python3.11 * python3.9 * ruby2.1 * ruby2.7 * ruby3.1 * tcl8.6 ...
Please test and reopen with more details of your needs if that does not work for you :)