Dokumentasi / Features
Features
π Zero Configuration Setup
Interactive CLI yang memandu Anda through setiap step. Tidak ada file config yang rumit atau hidden magic.
Apa yang didapat:
- Step-by-step prompts untuk semua pilihan
- Smart defaults untuk developer baru
- Flags untuk automation & CI/CD
- Instant feedback dan validation
# Interactive mode (recommended)
php artisan bangkah:create
# Non-interactive mode (CI/CD)
php artisan bangkah:create --type=web --frontend=tailwind --docker --yes
π³ Docker Ready
Generate lengkap Docker setup siap production:
β Dockerfile
- PHP 8.2-FPM optimized
- Composer dependencies cached
- Production-grade image
β docker-compose.yml
- Multi-service orchestration
- Development overrides included
- Health checks configured
- Named volumes for persistence
β Nginx Configuration
- Production optimization
- FastCGI caching
- Gzip compression
- Static file serving
- Security headers
β Database & Redis
- MySQL 8 atau PostgreSQL 16
- Redis caching setup
- Adminer untuk database management
- Automated backups ready
Mulai langsung:
docker compose up -d
# Production-ready dalam seconds
π¦ Multiple Project Templates
Web Template (Default)
Full-stack web application dengan:
- Responsive homepage
- Authentication scaffolding
- User dashboard example
- CSS/JS assets integrated
- Routes & controllers pre-configured
php artisan bangkah:create --type=web
API Template
REST API dengan modern practices:
- Health check endpoint
- CORS configured
- Sanctum token authentication
- API routes separated
- OpenAPI/Swagger ready
php artisan bangkah:create --type=api
π¨ Frontend Flexibility
Pilih frontend setup yang sesuai kebutuhan:
Tailwind CSS (Recommended)
β Latest Tailwind CSS 3.x
β @tailwindcss/forms for form styling
β Dark mode support built-in
β Production-optimized output
β Excellent documentation
β Active community & ecosystem
Bootstrap 5
β Bootstrap 5 latest
β Bem-optimized CSS
β jQuery excluded (modern JS only)
β Bundled icons via Bootstrap icons
β Great for legacy projects
Headless / None
β API-only setup
β No frontend scaffolding
β Perfect untuk SPA/mobile apps
β Separate frontend repository
π Authentication Scaffolding
Laravel Breeze (with Tailwind)
β Clean, minimal authentication pages
β Login & Registration
β Password reset with email verification
β Email verification feature
β Tailwind-styled Forms
β CSRF protection built-in
Laravel UI (with Bootstrap)
β Bootstrap-styled authentication
β User dashboard included
β Responsive design
β Pre-built components
β Customizable scaffolding
Apa yang included:
- User model & migrations
- Routes & controllers
- Login & register pages
- Password reset email templates
- Email verification flow
- Remember me functionality
Semua production-ready tanpa perlu manual setup.
πΎ Database Options
MySQL 8
β Latest MySQL 8.0
β InnoDB storage engine
β Fast query performance
β Wide compatibility
β Good for most projects
PostgreSQL 16
β Advanced features (JSON, Arrays, etc)
β Better ACID compliance
β Excellent for complex queries
β Better scalability
β Open source & enterprise-ready
Otomatis configured:
.envfile settings- Database user & password
- Database name
- Connection parameters
- Adminer container untuk management
β‘ Auto Build & Hot Reload
Development Mode
npm run dev
# Vite watches dan rebuilds on changes
# Browser auto-refresh dengan HMR
# Sub-second rebuild time
Production Build
npm run build
# Optimized output
# Asset minification & compression
# Tree-shaking untuk smaller bundles
# Sourcemap generation
Vite configuration:
- Pre-configured untuk Laravel
- Mix CSS/JS seamlessly
- Asset versioning for cache busting
- Image optimization ready
π§ Customizable & Extensible
Bangkah bukan frameworkβini scaffolding. Setelah dijalankan:
β Semua file standard Laravel
β Edit atau extend sesuka hati
β Gunakan any Laravel package
β Tidak ada vendor lock-in
β Zero runtime dependency
Generated files:
app/- Controllers, Models, etc (fully modifiable)routes/- Web & API routesresources/- Views, CSS, JSdatabase/- Migrations & seedersdocker-compose.yml- Edit untuk kebutuhan custom
π― Best Practices Built-in
Code Organization:
- Clean folder structure
- Separation of concerns
- Consistent naming conventions
- Middleware configuration
Security:
- CSRF protection
- Rate limiting setup
- Secure password hashing
- Environment configuration
- SQL injection prevention
Performance:
- Docker optimization
- Nginx caching
- Asset optimization
- Database indexing examples
- Queue setup ready
Deployment:
- Production-grade configuration
- Health check endpoints
- Logging initialized
- Error handling setup
- Ready for Kubernetes
π Project Statistics
Bangkah generate project dengan:
β 1 Dockerfile (optimized)
β 1 docker-compose.yml
β Full nginx config
β 2-3 Example controllers
β 2-3 Example routes
β Auth views & templates
β 1-2 Example migrations
β CSS/JS assets configured
β .env template
β README dengan setup guide
Total setup time: 2-3 minutes vs 30-60 minutes manual
Command Line Interface
# Main command
php artisan bangkah:create
# Flags
--type=web|api # Project type
--frontend=tailwind|bootstrap|none
--database=mysql|postgresql
--docker # Include Docker setup
--nginx # Include Nginx config
--yes # Skip confirmations
Example:
php artisan bangkah:create \
--type=web \
--frontend=tailwind \
--database=postgresql \
--docker \
--yes
Whatβs Next?
- π Quick Start β
- π³ Docker Setup β
- π¨ Frontend Guide β
- π Full Documentation β
On This Page
- Features
- π Zero Configuration Setup
- π³ Docker Ready
- π¦ Multiple Project Templates
- Web Template (Default)
- API Template
- π¨ Frontend Flexibility
- Tailwind CSS (Recommended)
- Bootstrap 5
- Headless / None
- π Authentication Scaffolding
- Laravel Breeze (with Tailwind)
- Laravel UI (with Bootstrap)
- πΎ Database Options
- MySQL 8
- PostgreSQL 16
- β‘ Auto Build & Hot Reload
- Development Mode
- Production Build
- π§ Customizable & Extensible
- π― Best Practices Built-in
- π Project Statistics
- Command Line Interface
- Whatβs Next?