Skip to content

Instantly share code, notes, and snippets.

View R4nch0X's full-sized avatar
🏠
Working from home

Richard Andrés Echavalete R4nch0X

🏠
Working from home
  • Buenos Aires
View GitHub Profile
@R4nch0X
R4nch0X / switch-php.sh
Last active February 19, 2023 03:51
Simple and dinamic switch php version
#!/bin/bash
current_version=$(php -v | grep -o -E 'PHP [0-9]+\.[0-9]+' | awk '{print $2}')
start_version=$1
if [[ -z "$start_version" ]]; then
echo "Error: No PHP version specified to activate."
echo "Use: $0 <version>"
exit 1
fi

Keybase proof

I hereby claim:

  • I am r4nch0x on github.
  • I am ranchox (https://keybase.io/ranchox) on keybase.
  • I have a public key ASB4yKcA-oI6APGs9tlv7SYimoG7voiQ9RpOVn0bPXtZPgo

To claim this, I am signing this object: