vireo/starter
Composer 安装命令:
composer create-project vireo/starter
包简介
Vireo Framework application starter template with Vertical Slice Architecture and Inertia.js.
README 文档
README
A modern PHP application starter template built on the Vireo Framework with Vertical Slice Architecture and Inertia.js.
Features
- Vertical Slice Architecture - Organized by feature, not by layer
- Inertia.js + React - Modern SPA experience without building an API
- TailwindCSS v4 - Utility-first CSS framework
- Authentication System - Login, registration, password reset
- User Activity Tracking - Monitor user actions with geolocation support
- API Traffic Monitoring - Track and analyze API usage
- Role & Permission Based Access - Fine-grained authorization
- Rate Limiting - Protect endpoints from abuse
- Input Validation & Sanitization - Built-in security features
- Multiple Database Support - PostgreSQL, MySQL, SQLite, SQL Server
- Multiple Cache Drivers - File, Redis, Memcached, Database
- Multiple Storage Drivers - Local, FTP, SFTP, S3, DigitalOcean Spaces, MinIO
Requirements
- PHP 8.4+
- Composer
- Node.js 18+
- npm or yarn
Installation
# 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
Development
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.
Project Structure
├── 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
Available Commands
# 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
Configuration
All configuration is done through environment variables. Copy .env.example to .env and adjust the values:
- Database: Configure your database connection (PostgreSQL recommended for production)
- Cache: Choose between file, Redis, Memcached, or database caching
- Session: Configure session storage driver
- Storage: Set up file storage (local, S3, FTP, etc.)
- Rate Limiting: Configure API rate limits
See .env.example for detailed documentation of all available options.
Testing
# Run all tests composer test # Run specific test file ./vendor/bin/phpunit Tests/Unit/Validation/ValidatorTest.php
Documentation
- Vireo Framework Documentation
- Inertia.js Documentation
- React Documentation
- TailwindCSS Documentation
Contributing
Please see CONTRIBUTING.md for details on how to contribute to this project.
License
This project is open-sourced software licensed under the MIT license.
vireo/starter 适用场景与选型建议
vireo/starter 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 11 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「php」 「boilerplate」 「react」 「starter」 「vue」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 vireo/starter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vireo/starter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 vireo/starter 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
PHP class to extend when building a WordPress plugin allowing you to follow smart plugin setup standards.
Anax htmlform module.
Laravel 5.7 Boilerplate based on Bootstrap 4 and Tabler for Backend.
WordPress Plugin Framework
A Laravel 6 API Boilerplate to create a ready-to-use REST API. User Authentication using JWT.
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-01