Hello. I'm Tony a web developer from Vietnam, In this video, I introduce apps that I use for daily tasks and how to set them up from the new Macbook Pro for PHP developers in 2022. Hope you guys like it.
MACBOOK PRO SPECIFICATION
- 14-inch
- Apple M1 Pro, 10‑Core CPU, 16‑Core GPU and 16‑Core Neural Engine
- 16 GB RAM
- 512 GB SSD
- QWERTY = English (International)
- macOS Monterey
SETUPS
Install Homebrew as the package manager for macOS:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
then update brew to the latest version
brew update
Install the applications
brew install --cask \
google-chrome \
iterm2 \
visual-studio-code \
sublime-text \
docker \
alfred \
slack \
vlc \
wget \
exa \
git \
Oh my Zsh
Installation
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Oh My Zsh Plugins and theme
- https://github.com/zsh-users/zsh-autosuggestions
Install the theme https://github.com/romkatv/powerlevel10k
Valet+ for Mac
You can find the full documentation at here github.com/weprovide/valet-plus/wiki
- Install or update Homebrew to the latest version using
brew update
. - Add the Homebrew PHP tap for Valet+ via
brew tap henkrehorst/php.
- Install PHP 8.0 using Homebrew via
brew install valet-php@8.0 --build-from-source
- Link your PHP version using the command
brew link valet-php@8.0 --force
Install Composer using Homebrew via
brew install composer
Install Valet+ with Composer via
composer global require weprovide/valet-plus
Add
export PATH="$PATH:$HOME/.composer/vendor/bin"
to .bash_profile (for bash) or .zshrc (for zsh) depending on your shell (echo $SHELL)
Run the
valet fix
command. This will check for common issues preventing Valet+ from installing.Run the valet install command. Optionally add --with-mariadb to use MariaDB instead of MySQL This will configure and install Valet+ and DnsMasq, and register Valet's daemon to launch when your system starts.
Once Valet+ is installed, try pinging any *.test domain on your terminal using a command such as
ping -c1 foobar.test
. If Valet+ is installed correctly you should see this domain responding on 127.0.0.1. If not you might have to restart your system. Especially when coming from the Dinghy (docker) solution.
Valet+ will automatically start its daemon each time your machine boots. There is no need to run valet start or valet install ever again once the initial Valet+ installation is complete.
ACPU error
You can found the solution at github.com/weprovide/valet-plus/pull/573
For compilers to find php@8.0 you may need to set:
export LDFLAGS="-L/opt/homebrew/opt/php@8.0/lib"
export CPPFLAGS="-I/opt/homebrew/opt/php@8.0/include"
Error
/opt/homebrew/Cellar/valet-php@8.0/8.0.3/include/php/ext/pcre/php_pcre.h:23:10: fatal error: 'pcre2.h' file not found #include "pcre2.h"
How to fix it
ln -s /opt/homebrew/include/pcre2.h /opt/homebrew/Cellar/valet-php@8.0/8.0.3/include/php/ext/pcre/pcre2.h
Please notice the path for your valet PHP to make it correct
VIDEO EDITING
▶ My equipment
- Video editing: Final Cut Pro X
- Mic: Blue Microphones Yeti
Follow me online here: ▶ Twitter twitter.com/coder_horizon ▶ Blog coderhorizon.com
Credits: ▶ BGM: Amnesia by Ghost_Beatz - app.soundstripe.com/songs/14193
- 00:44 Clean the Dock
- 00:24 Install Homebrew
- brew.sh
- 01:35 Install iTerm2 and change its colour scheme
- iterm2.com
- 3:24 Install zsh
- formulae.brew.sh/formula/z
- 4:26 Install Oh My Zsh and its plugins
- ohmyz.sh
- https://github.com/zsh-users/zsh-autosuggestions
- https://github.com/zsh-users/zsh-autosuggestions
- 05:32 Install Power level 10k
- github.com/romkatv/powerlevel10k
- 07:42 Install exa
- github.com/ogham/exa
- 08:47 Install Valet+ and demo
- github.com/weprovide/valet-plus
- ACPU issue
- github.com/weprovide/valet-plus/pull/573
- 14:31 Testing Valet+
- 15:30 Other apps
- Amphetamine
- apps.apple.com/us/app/amphetamine/id9379847..
- Alfred - alfredapp.com
- Raycast - raycast.com
- VS Code - code.visualstudio.com