Download the PHP package itcompass/basepack without Composer
On this page you can find all versions of the php package itcompass/basepack. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download itcompass/basepack
More information about itcompass/basepack
Files in itcompass/basepack
Package basepack
Short Description DevOps toolkit for Laravel projects with Docker, Make commands, and development environment setup
License MIT
Homepage https://github.com/ibigforko/basepack
Informations about the package basepack
Overview
BasePack is a comprehensive DevOps toolkit that streamlines Docker-based Laravel development and deployment. It provides pre-configured Docker containers, SSL certificate management, intelligent diagnostics, and powerful automation commands - everything you need to go from development to production seamlessly.
Built by developers, for developers - BasePack eliminates the complexity of Docker configuration while maintaining flexibility for customization.
Why BasePack?
- Zero Configuration - Install and run in minutes with smart defaults
- Production Ready - Separate dev/prod configurations with security hardening
- SSL Made Easy - Automatic certificate detection and validation
- Smart Diagnostics - Auto-fix common issues with built-in diagnostic tools
- Real-time Monitoring - Live dashboard for container stats and health checks
- Full Stack Included - PHP, Nginx, MySQL, Redis, with Xdebug for development
- Battle Tested - Comprehensive test coverage across PHP 8.1-8.3 and Laravel 10-12
Features
🚀 Quick Setup & Automation
- One-Command Installation -
php artisan basepack:installsets up everything - Smart SSL Detection - Automatically finds and validates certificates from 6+ locations
- Project Name Inference - Intelligently detects project name from various sources
- Makefile Integration - 295 lines of pre-configured Make commands for common tasks
🐳 Docker Environment
- Multi-Version PHP Support - PHP 8.1, 8.2, 8.3 with FPM
- Modern Stack - Nginx, MySQL 8.0, Redis 7.4
- Xdebug Integration - Pre-configured for PhpStorm and VSCode
- Separate Configurations - Optimized dev and production environments
- Security Hardened - Redis authentication, protected mode, disabled dangerous commands (CVE-2025-49844 mitigation)
🛠 Artisan Commands
| Command | Description |
|---|---|
basepack:install |
Install and configure the complete toolkit |
basepack:build |
Build Docker containers with dev/prod options |
basepack:dashboard |
Real-time container monitoring with auto-refresh |
basepack:status |
Quick container status overview |
basepack:diagnose |
Comprehensive diagnostics with --fix auto-repair |
basepack:ssl-check |
Validate SSL certificates and check expiration |
basepack:test |
Run package tests with coverage options |
basepack:exec |
Execute commands in specific containers |
basepack:publish |
Publish specific assets (docker, make, compose, config) |
📊 Monitoring & Diagnostics
- Real-time Dashboard - CPU, memory, port mappings, health checks
- Smart Diagnostics - Detects missing files, invalid configs, SSL issues
- Auto-Fix Capability - One-command resolution of common problems
- Detailed Reporting - Clear, actionable feedback with next steps
🔒 Security Features
- Redis Security Hardening - Password auth, protected mode, network isolation
- CVE-2025-49844 Mitigation - Disabled dangerous Lua scripting commands
- SSL/TLS Support - Self-signed or production certificates
- No Public Exposure - Redis and MySQL accessible only via internal Docker network
- Environment Validation - Checks for weak passwords and security misconfigurations
Requirements
- PHP 8.1, 8.2, or 8.3
- Laravel 10.x, 11.x, or 12.x
- Docker & Docker Compose
- Make (optional, but recommended)
Installation
1. Install via Composer
2. Run Installation Wizard
The installer will:
- Detect or prompt for SSL certificates
- Create
.env.dockerwith secure defaults - Publish Docker configuration files
- Generate Makefile for automation
- Create docker-compose files for dev/prod
- Update
.gitignorewith sensible defaults
3. Configure Environment
Option A: New Project
Option B: Existing Project
Important: Change default passwords!
Generate strong passwords:
4. Build and Start
5. Access Your Application
Quick Start
Development Workflow
Production Deployment
Monitoring & Debugging
Configuration
Project Structure
After installation, BasePack creates:
Environment Variables
Key variables in .env.docker:
SSL Certificates
BasePack looks for SSL certificates in these locations (in order):
./ssl/./.ssl/./certificates/./.docker/ssl//etc/ssl/certs/~/.ssl/
Or specify custom path:
Certificate Requirements:
- Files must be named
cert.pemandkey.pem - For development: self-signed certificates work fine
- For production: use valid certificates (Let's Encrypt recommended)
Generate self-signed certificate:
Makefile Commands
BasePack includes a comprehensive Makefile with 30+ commands:
Container Management
Development
Composer & NPM
Database
Cache & Queue
Testing
Advanced Usage
Custom Container Commands
Selective Publishing
Environment-Specific Installation
Xdebug Configuration
BasePack includes pre-configured Xdebug for development:
PhpStorm:
- Enable Xdebug in
.env.docker:XDEBUG_CONFIG=main - Configure PhpStorm: Settings → PHP → Servers
- Add server with name
localhostand port80 - Enable "Start listening for PHP Debug Connections"
VSCode:
- Use
.docker/dev/xdebug-main.iniconfiguration - Install PHP Debug extension
- Configure launch.json with provided settings
macOS Users:
- Use
XDEBUG_CONFIG=osxfor Docker Desktop on macOS - Uses
xdebug-osx.iniwith Docker host gateway
Testing
BasePack includes comprehensive tests across three tiers:
Running Tests
Test Coverage
BasePack is tested against:
- PHP Versions: 8.1, 8.2, 8.3
- Laravel Versions: 10.x, 11.x, 12.x
- Dependency Variants: prefer-lowest, prefer-stable
- Total Matrix Combinations: 14 test scenarios
See TESTING.md for detailed testing documentation.
Security
Security Hardening
BasePack implements comprehensive security measures:
Redis Security (CVE-2025-49844 Mitigation):
- Password authentication required
- Protected mode enabled
- Network isolation (no public exposure)
- Dangerous commands disabled (FLUSHDB, FLUSHALL, CONFIG, etc.)
- Updated to Redis 7.4-alpine with latest patches
Before Production Deployment:
- [ ] Change all default passwords
- [ ] Use strong passwords (32+ characters)
- [ ] Verify Redis is not publicly exposed
- [ ] Use valid SSL certificates
- [ ] Review
.gitignoreexcludes sensitive files - [ ] Run
php artisan basepack:diagnose --fix
Reporting Vulnerabilities
See SECURITY.md for our security policy and how to report vulnerabilities.
Contact: [email protected]
Troubleshooting
Common Issues
Containers won't start:
SSL certificate errors:
Permission issues:
Redis connection refused:
Xdebug not working:
Getting Help
- Run diagnostics:
php artisan basepack:diagnose - Check logs:
make logs - Review configuration:
php artisan basepack:status - Consult SECURITY.md
- Open an issue
Contributing
We welcome contributions! Please follow these guidelines:
Development Setup
Contribution Workflow
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Write tests for your changes
- Ensure all tests pass (
vendor/bin/phpunit) - Commit your changes (
git commit -m 'Add amazing feature') - Push to your branch (
git push origin feature/amazing-feature) - Open a Pull Request
Code Standards
- Follow PSR-12 coding standards
- Write comprehensive tests (unit, integration, feature)
- Document new features in README.md
- Update CHANGELOG.md with your changes
- Ensure CI/CD pipeline passes
Testing Requirements
All contributions must include tests and pass the full test matrix:
- PHP 8.1, 8.2, 8.3
- Laravel 10.x, 11.x, 12.x
- Both prefer-lowest and prefer-stable dependencies
Changelog
Please see CHANGELOG.md for recent changes.
Credits
Created By
ITCompass - Digital Solutions Agency
- Website: itcompass.io
- Email: [email protected]
Lead Developer
Artem Shevchenko (@ibigforko)
Contributors
See all contributors who have helped make BasePack better.
License
BasePack is open-source software licensed under the MIT License.
Copyright (c) 2025 ITCompass
Support
Commercial Support
Need help with implementation, custom features, or dedicated support?
Contact us: [email protected]
Community Support
- GitHub Issues - Bug reports and feature requests
- GitHub Discussions - Questions and community help
Acknowledgments
BasePack is built with and inspired by these amazing projects:
- Laravel - The PHP Framework for Web Artisans
- Docker - Containerization platform
- Redis - In-memory data structure store
- Nginx - High-performance web server
- MySQL - Popular open-source database
All versions of basepack with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/console Version ^10.0|^11.0|^12.0
symfony/process Version ^6.0|^7.0