An open API service indexing awesome lists of open source software.

https://github.com/deniskorbakov/laravel-13-frankenphp-docker

🐘 FrankenPHP and Laravel Octane with Docker + Laravel 13
https://github.com/deniskorbakov/laravel-13-frankenphp-docker

ansible docker frankenphp laravel laravel13 php tamplate

Last synced: about 23 hours ago
JSON representation

🐘 FrankenPHP and Laravel Octane with Docker + Laravel 13

Awesome Lists containing this project

README

          

# FrankenPHP and Laravel 13 Octane with Docker

This template was created for a quick start of a Laravel project with already
prepared basic logic and is required by the environment:


## Installation

To start the template you will need git and docker/docker compose

**Performing steps:**

You can also submit a template to yourself through the GitHub interface

```bash
git clone https://github.com/deniskorbakov/laravel-13-frankenphp-docker.git
```

Let's go to the cloned repository

```bash
cd laravel-13-frankenphp-docker
```

Copy env example to env

```bash
cp .env.example .env
```

Let's run the command to start the project

```bash
make init
```

---

## If you need to run a regular php server

> You may need this when working with filament or just for testing locally

Then this command will launch a regular artisan server

```bash
make build-simple
```

The server will be accessible by `localhot:8000`

if you want to communicate without a port, then change `APP_PORT` on 80 port

---

**Docker images - utilities:**

* Laravel 13
* Frankenphp
* Postgres
* Kvrocks
* Supervisor
* Traefik
* Mailhog

**Auxiliary services:**

* Rector + Phpstan + Php_codesniffer
* Pest

**Libraries - prepared code:**

* DTO Laravel-data
* WebSocket - centrifugo
* Horizon - monitoring queue
* laravel/octane
* Admin panel - Filament
* API logic auth
* Logic saved files in storage - db
* Scribe API doc
* Pulse - monitoring app

**Additional functionality:**

* Multi-stage build
* Prepared assembly for local development and sales
* Configured GitHub actions for stat analyzers and deployment
* Customized role system
* Centrifugo real-time messaging server
* Ansible is configured to set up the production environment
* Monitoring system
* Tess - Unit/Feature/Coverage/Architecture

**Go to the project address:**

- [API doc](http://localhost/api/docs)
- [Admin panel](http://localhost/admin/login)
- [Dozzle](http://localhost:9100)
- [Horizon - available only to users with the Developer role](http://localhost/horizon)
- [Pulse - available only to users with the Developer role](http://localhost/pulse)

## Documentation

[Template documentation](documentation/README.md)

## Usage

The command for exec in app container

```bash
make exec
```

The command for check code (phpstan, php cs, rector, peck)

```bash
make lint
```

The command for fix err (php cs, rector)

```bash
make lint-fix
```

The command for run tests

```bash
make test
```

The command for run test coverage

```bash
make test-coverage
```