egorsmkv / laravel-boilerplate

A Laravel Boilerplate with Batteries on Modern Technologies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel Boilerplate

Note

It must:

  • be on the latest version of Laravel
  • be lightweight to run with Docker
  • use modern technologies such as PHP 8.3, Go 1.22, Python 3.12, etc.

Requirements

Usage

# Generate certificates for CockroachDB
task certs-init

# Build dev image
task build

# Prune builds
task prune-builds

# Up containers
task up

# Show logs
task logs

# Copy Laravel environment variables file
cp -n dev-frontend.env apps/frontend/.env

# Install dependencies, generate key, run migrations
task install

# Run queue worker
task queue

# Enter the apps container
task console

Commands

Build assets:

task bun-dev
task bun-prod

Update locales:

task lang-update

Apply fixes by phpcs:

task fix-phpcs

Fix permissions:

task fix-perms

Analyse the code by Larastan:

task phpstan

Check security vulnerabilities in dependencies:

task check-security

Create a new migration using go-migrate:

task console

migrate create -ext sql -dir database/migrations -seq create_test_table

Generate a command to up migrations:

php artisan app:gen-migrate-command

Generate a command to enter CockroachDB SQL shell:

php artisan app:gen-sql-shell-command

Misc

  • Access http://localhost/?SPX_KEY=dev&SPX_UI_URI=/ to enable PHP-SPX and see the profiling results;
  • Read UPDATE.md to keep the project up to date;
  • Use dive to analyze Docker images;
  • Use grype to check security vulnerabilities.

Alternatives

About

A Laravel Boilerplate with Batteries on Modern Technologies

License:Apache License 2.0


Languages

Language:PHP 94.5%Language:Blade 3.1%Language:Dockerfile 1.9%Language:Go 0.3%Language:Python 0.2%Language:Shell 0.1%