| Install | |
|---|---|
composer require vireo/starter |
|
| Latest Version: | v1.2.0 |
| PHP: | ^8.4 |
A modern PHP application starter template built on the Vireo Framework with Vertical Slice Architecture and Inertia.js.
# Create a new project
composer create-project vireo/starter my-app
# Navigate to project directory
cd my-app
# Install JavaScript dependencies
npm install
# Copy environment file (done automatically by composer)
cp .env.example .env
# Generate application key
./vireo key:generate
# Run database migrations
./vireo migrate
# Seed the database (optional)
./vireo db:seed
Start the development servers:
# Start PHP development server
./vireo serve
# In a separate terminal, start Vite dev server
npm run dev
# Or run both with the dev command
composer dev
Visit http://localhost:8000 in your browser.
├── Config/ # Application configuration
├── Features/ # Feature modules (Vertical Slices)
│ ├── Auth/ # Authentication feature
│ ├── UserActivity/ # User activity tracking
│ └── ApiMonitoring/ # API traffic monitoring
├── Infrastructure/ # Infrastructure code
│ ├── Http/ # Controllers, middleware, routes
│ ├── Persistence/ # Migrations, seeds, repositories
│ └── Resources/ # Frontend assets (JS, CSS)
└── Tests/ # Test suite
# Development
./vireo serve # Start development server
./vireo dev # Start dev server with Vite HMR
npm run dev # Start Vite dev server
npm run build # Build frontend assets
# Database
./vireo migrate # Run migrations
./vireo migrate:rollback # Rollback last migration
./vireo migrate:status # Show migration status
./vireo db:seed # Run database seeders
# Testing
composer test # Run PHPUnit tests
All configuration is done through environment variables. Copy .env.example to .env and adjust the values:
See .env.example for detailed documentation of all available options.
# Run all tests
composer test
# Run specific test file
./vendor/bin/phpunit Tests/Unit/Validation/ValidatorTest.php
Please see CONTRIBUTING.md for details on how to contribute to this project.
This project is open-sourced software licensed under the MIT license.