Laravel-based communication platform foundation with Dockerized local development, PostgreSQL, Redis, automated tests, static analysis, refactoring checks, and CI-backed quality gates.
Livechat Platform is a Laravel application foundation for a trusted communication platform.
The repository currently contains the application base, development environment, database service setup, testing setup, CI workflow, documentation structure, and backend quality tooling required to continue development in a controlled and reviewable way.
The current codebase includes:
- Laravel 13 application foundation
- Laravel Sail / Docker local development environment
- PostgreSQL database service
- Redis service
- Mailpit local mail testing
- Pest testing foundation
- Vite frontend build foundation
- GitHub Actions CI
- Laravel Pint code style checks
- Larastan / PHPStan static analysis
- Rector dry-run refactoring checks
- Composer quality scripts
- Repository documentation baseline
- Security and architecture documentation
- Pull request workflow with required CI checks
Current stack:
- Laravel 13
- PHP 8.5
- PostgreSQL
- Redis
- Laravel Sail
- Docker Compose
- Mailpit
- Pest
- Laravel Pint
- Larastan / PHPStan
- Rector
- Vite
- GitHub Actions
Recommended local requirements:
- Git
- Docker
- Docker Compose
- PHP 8.5 compatible local environment
- Composer
- Node.js
- npm
The application runtime is designed to run through Laravel Sail.
Clone the repository:
git clone git@github.com:vardanm1993/livechat-platform.git
cd livechat-platformInstall PHP dependencies:
composer installInstall frontend dependencies:
npm ci --ignore-scriptsCreate the local environment file:
cp .env.example .envStart the Docker/Sail environment:
./vendor/bin/sail up -dGenerate the application key:
./vendor/bin/sail artisan key:generateRun database migrations:
./vendor/bin/sail artisan migrateBuild frontend assets:
npm run buildStart the local environment:
./vendor/bin/sail up -dOpen the application:
http://localhost
Stop the local environment:
./vendor/bin/sail downRun the backend quality gate:
./vendor/bin/sail composer qualityRun the frontend production build:
npm run buildThe project is correctly set up when both commands pass.
For local convenience, developers may define a shell alias:
alias sail='[ -f sail ] && sh sail || ./vendor/bin/sail'After that, local commands can be shortened:
sail artisan test
sail composer qualityThis README uses the full ./vendor/bin/sail form so commands work for every developer without requiring shell customization.
When Sail is running:
- Application:
http://localhost - Mailpit dashboard:
http://localhost:8025 - PostgreSQL: forwarded to local port
5432 - Redis: forwarded to local port
6379
Run backend tests:
./vendor/bin/sail composer testEquivalent Artisan command:
./vendor/bin/sail artisan testRun the full backend quality gate:
./vendor/bin/sail composer qualityThis runs:
- Laravel Pint style check
- Larastan / PHPStan static analysis
- Rector dry-run refactoring check
- Pest tests
Individual commands:
./vendor/bin/sail composer lint
./vendor/bin/sail composer lint:fix
./vendor/bin/sail composer analyse
./vendor/bin/sail composer refactor:dry
./vendor/bin/sail composer refactor
./vendor/bin/sail composer testcomposer refactor is intended for local developer use only. CI uses Rector in dry-run mode.
GitHub Actions runs automated checks for pull requests and pushes targeting develop and main.
Current CI checks include:
- Composer validation
- PHP dependency installation
- Laravel Pint code style checks
- Larastan / PHPStan static analysis
- Rector dry-run checks
- PostgreSQL-backed database migrations
- Pest backend tests
- npm clean install
- Vite production build
Required CI checks:
Backend Quality and TestsFrontend Build
Project documentation:
- Architecture Overview
- Database Blueprint
- Security Overview
- Repository Standards
- Code Quality
- Architecture Decisions
Livechat Platform is designed with a security-first development approach.
Current security documentation covers the project security direction, reporting expectations, and baseline security considerations.
Security concerns should be reported privately according to the project security policy.
See:
This repository uses a pull request based workflow.
Recommended branch prefixes:
feat/fix/docs/test/refactor/ci/chore/security/
Pull requests should include a clear summary, list of changes, verification steps, and relevant security or database impact notes.
The develop and main branches are intended to be protected by required CI checks.
This project is open-sourced under the MIT license.