lauroguedes/mary-ui-starter-kit
Composer 安装命令:
composer create-project lauroguedes/mary-ui-starter-kit
包简介
A modern Laravel starter kit featuring Livewire Volt, Mary UI, and Tailwind CSS with complete authentication, user management, and comprehensive testing.
关键字:
README 文档
README
A modern, production-ready Laravel starter kit featuring Livewire 4 and Mary UI. Build beautiful web applications with a complete authentication system, user management, and developer-friendly tooling.
✨ Features
🎨 Frontend Stack
- Livewire 4.x for reactive components with improved performance
- Mary UI 2.x - Beautiful, accessible UI components
- Tailwind CSS 4.x + DaisyUI v5 for styling
- Blade Hero and Fontawesome icons integration
- Vite for lightning-fast asset bundling
🔐 Authentication & User Management
- Complete authentication system (login, registration, password reset)
- Email verification with resend functionality
- Password confirmation for sensitive operations
- User profile management with avatar uploads
- User management dashboard with full CRUD operations
- User status management (Active, Inactive, Suspended)
- Advanced filtering and search capabilities
- Avatar management with automatic cleanup
- Google OAuth integration for social login
- Roles & Permissions system powered by Spatie Laravel Permission
- Role-based access control with granular permission management
- User role assignment and permission checking middleware
🔗 OAuth Socialite Integration
- Laravel Socialite integration with extensible provider system
- Google OAuth authentication out of the box
- Social account linking to existing user accounts
- Automatic user creation for new social logins
- Extensible architecture for adding new OAuth providers
- Secure token handling and user data synchronization
🎭 Demo Mode
- Built-in demo mode for showcasing your application
- Scheduled data reset to maintain clean demo environment
- Configurable demo password or auto-generated random password on each reset
- Login protection prevents password changes in demo mode
- Visual indicator alerts users when demo mode is active
- Configurable reset schedule (hourly, daily, etc.)
🏗️ Architecture & Developer Experience
- Laravel 12.x with PHP 8.2+ support
- SQLite database by default (easy local setup)
- Pest testing framework with 80+ comprehensive tests
- Code quality tools: Pint (formatting), Rector (refactoring)
- Debugging tools: LaraDumps, Laravel Pail
- Development workflow with Concurrently for multi-process dev server
- OAuth Socialite Integration with extensible architecture for new oauth providers
🧪 Testing Coverage
- Complete test coverage for authentication flows
- User management CRUD operations testing
- Roles and Permissions management CRUD operations testing
- Demo mode functionality testing
- File upload and avatar management testing
- Form validation and error handling
- Database cleanup and file storage testing
📁 File Management
- Avatar upload with cropping support (Cropper.js)
- Automatic file cleanup on user deletion
- File validation (type, size)
- Storage testing with fake disks
🚀 Quick Start
Prerequisites
- PHP 8.2+
- Node.js 18+
- Composer
- SQLite (included with PHP)
Installation
# Install via Laravel Installer laravel new my-app --using=lauroguedes/mary-ui-starter-kit # or Composer composer create-project lauroguedes/mary-ui-starter-kit my-app # (Optional) Generate fake data for testing php artisan db:seed # Default user user: test@user.com pw: secret
Clone the repository manually:
# Clone the repository git clone https://github.com/lauroguedes/mary-ui-starter-kit cd mary-ui-starter-kit # Install PHP dependencies composer install # Copy environment file and generate app key cp .env.example .env php artisan key:generate # Set up the database php artisan migrate --seed # Install frontend dependencies npm install # or if you use Yarn yarn # Run the development server php artisan serve # In a separate terminal npm run dev # or yarn dev
Development Workflow
For an enhanced development experience with hot reloading:
# Start all development services (server, queue, logs, vite)
composer dev
Visit http://localhost:8000 to view your application.
This runs:
- Laravel development server
- Queue worker
- Log monitoring (Pail)
- Vite dev server with hot reload
🧪 Testing
Run the comprehensive test suite:
# Run all tests ./vendor/bin/pest # Run with coverage ./vendor/bin/pest --coverage
🔧 Customization
Key environment variables for customization:
# Appearance settings APP_LAYOUT=sidebar # Options: sidebar, header LOGIN_LAYOUT=card # Options: card, simple, split # Demo mode settings DEMO_MODE=false # Enable demo mode for showcasing the app DEMO_PASSWORD= # Fixed password for all demo users (random if not set) DEMO_RESET_SCHEDULE=hourly # Options: hourly, daily, weekly
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes and add tests
- Run the test suite:
./vendor/bin/pest - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
Code Quality
We maintain high code quality standards:
# Format code ./vendor/bin/pint # Refactor code ./vendor/bin/rector # Run tests ./vendor/bin/pest
📋 Roadmap
- Role-based permissions system ✅
- Demo mode for showcasing ✅
- Advanced Log and Audit
- Multi-tenant support
- Advanced notification system
- Dashboard analytics
- API integration with Laravel Sanctum
🆘 Support
- Documentation: Mary UI Docs
- Issues: GitHub Issues
📝 License
This project is open-sourced software licensed under the MIT license.
Built with ❤️ by Lauro Guedes
⭐ Star this repository if it helped you!
lauroguedes/mary-ui-starter-kit 适用场景与选型建议
lauroguedes/mary-ui-starter-kit 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 210 次下载、GitHub Stars 达 32, 最近一次更新时间为 2025 年 06 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「php」 「Authentication」 「laravel」 「user-management」 「volt」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 lauroguedes/mary-ui-starter-kit 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 lauroguedes/mary-ui-starter-kit 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 lauroguedes/mary-ui-starter-kit 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Automatically logs-in users if they are already authenticated by a remote source. (e.g. environment variable REMOTE_USER)
GraphQL authentication for your headless Craft CMS applications.
Laravel middleware to restrict a site or specific routes using HTTP basic authentication
Email Toolkit Plugin for CakePHP
A list of dangerous usernames
统计信息
- 总下载量: 210
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 32
- 点击次数: 28
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-15