---
title: "Discussion on \"Fish Shell + Laravel Valet: Auto-Switch PHP Versions and Composer v1/v2\" | Hashnode"
description: "Discussion on \"Fish Shell + Laravel Valet: Auto-Switch PHP Versions and Composer v1/v2\". Use fish shell aliases and functions to make php, composer, and phpunit automatically follow Laravel Valet PHP versions. Handles legacy projects requiring Composer v1 with smart composer.phar detection."
url: "https://hashnode.com/posts/fish-valet-php-composer/69e7d4471b3815358115f290"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Fish Shell + Laravel Valet: Auto-Switch PHP Versions and Composer v1/v2](https://recca0120.hashnode.dev/fish-valet-php-composer?utm_source=hashnode&utm_medium=feed)

Use fish shell aliases and functions to make php, composer, and phpunit automatically follow Laravel Valet PHP versions. Handles legacy projects requiring Composer v1 with smart composer.phar detection.

Apr 21 · 3 min read · recca0120.hashnode.dev  
Read the article

-   [#composer](https://hashnode.com/tag/composer)
-   [#fish](https://hashnode.com/tag/fish)
-   [#laravel](https://hashnode.com/tag/laravel)
-   [#php](https://hashnode.com/tag/php)
-   [#valet](https://hashnode.com/tag/valet)

## Written by

[recca0120](https://hashnode.com/@recca0120)

@recca0120 · Taipei, Taiwan

  
[View profile](https://hashnode.com/@recca0120)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
