From Terminal
# install dependencies
brew install autoconf # required by pecl
brew install libzip
# install zip extenion in your selected MAMP PHP version
ls /Applications/MAMP/bin/php/
From Terminal
# install dependencies
brew install autoconf # required by pecl
brew install libzip
# install zip extenion in your selected MAMP PHP version
ls /Applications/MAMP/bin/php/
export const createNewPhysicsLoopWebWorker = (stepRate: number) => { | |
return new Worker('data:application/javascript,' + | |
encodeURIComponent(` | |
var start = performance.now(); | |
var updateRate = ${stepRate}; | |
function getNow() { | |
return start + performance.now(); | |
} |
A docker compose example file to use with laravel projects for development on local machines (tested with wsl2).
Before starting you should startup a docker network called local_docker from the cli. If you don't need to connect to external dockers you can remove the network configs altogheter.
Feel free to change the services name. PLease set the .env file before starting docker.