Skip to content

Instantly share code, notes, and snippets.

View altynbek07's full-sized avatar
🎯
Focusing

Altynbek altynbek07

🎯
Focusing
View GitHub Profile
@altynbek07
altynbek07 / README.md
Last active March 25, 2022 22:42
Switch PHP Version in Laravel Valet

Switch PHP Version in Laravel Valet

For me, the valet use [email protected] command does not work. And so I created this bash function.

Install

I already have PHP versions 7.2, 7.3 and 7.4 installed via Homebrew. Add this function in your .bash_profile or .zshrc file:

# Switch PHP version
switch-php() {
@altynbek07
altynbek07 / README.md
Last active December 5, 2019 04:36
Запуск Xdebug Profiler

Xdebug Profiler

Usage

cd ~/ && git clone https://gist.github.com/65bea84891cefd1c130308de3b963a2c.git xdebug_profiler \
&& cd xdebug_profiler && chmod +x start_profiler stop_profiler

Start

@altynbek07
altynbek07 / development-environment.md
Last active April 30, 2019 04:44
Настройка окружения backend web-разработчика на macOS

Настройка окружения разработчика

Данная инструкция для систем macOS

Brew

Выполните следующую команду в терминале:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew

@altynbek07
altynbek07 / README.md
Last active December 2, 2018 13:29
Yii2ValetDriver

How to install:

For Mac

cd ~/
&& git clone https://gist.github.com/349112047c91ea8441256db4dc390b9c.git
&& cd 349112047c91ea8441256db4dc390b9c
&& mv Yii2ValetDriver.php ~/.config/valet/Drivers/
&& rm -rf ~/349112047c91ea8441256db4dc390b9c
&& cd ~/ && valet restart