Using PHP-CLI 8.1 as default
-
Hello
Would it be possible to move the PHP CLI up to php 8.1? So we don't have to use php8.1 as a command? This would be very useful for composer projects.
-
@FoksVHox I think you can set
alias php=php8.1no? You can put it in/app/data/.bashrcwhich makes it sourced in Web Terminal .@girish said in Using PHP-CLI 8.1 as default:
alias php=php8.1
I wasn't aware that you had to create the
/app/data/.bashrc, which resolved it. However, when using composer scripts (such as you do in Laravel projects) it'll use the 7.4.30 version instead of the aliased one. -
@girish said in Using PHP-CLI 8.1 as default:
alias php=php8.1
I wasn't aware that you had to create the
/app/data/.bashrc, which resolved it. However, when using composer scripts (such as you do in Laravel projects) it'll use the 7.4.30 version instead of the aliased one.@FoksVHox I am not an expert on laravel, but can you point me to what issue one hits here because the php binary is still pointing to 7.4? Currently, it is difficult to create a package where the php binary is dynamic.
Are you refering to some issue like https://stackoverflow.com/questions/32750250/tell-composer-to-use-different-php-version ?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login