Navigate to the root of your Laravel project and clone the repository:
git clone https://github.com/Kamleshpaul/setup-laravel-with-frankenphp.gitMove the cloned repository to root directory:
mv setup-laravel-with-frankenphp/{Caddyfile,download.sh} ./ && rm -rf setup-laravel-with-frankenphpMake the download script executable:
chmod +x download.shRun the download script:
./download.sh This script will download composer.phar for Composer and FrankenPHP for php-cli, php, and Caddy server.
To install all the dependency, use the following command:
 ./frankenphp php-cli ./composer.phar installTo run the FrankenPHP server, use the following command:
./frankenphp runAfter running the server, open your web browser and navigate to https://localhost
Add this in .gitignore
frankenphp
composer.phar./frankenphp php-cli ./composer.phar (install | update | dump-autoload | require | remove)./frankenphp php-cli artisan aboutNOTE: It installs PHP 8.3. If you need another version of PHP, you can compile and use FrankenPHP and change the Composer version.