luis-developer-08/yui-default_ui
Composer 安装命令:
composer create-project luis-developer-08/yui-default_ui
包简介
This setup is designed for developers who want a lightweight, modern, and efficient foundation for building Laravel applications with a React frontend powered by InertiaJs.
关键字:
README 文档
README
🚀 Introduction
Welcome to my personal laravel installer YUI! This setup is designed for developers who want a lightweight, modern, and efficient foundation for building Laravel applications with a React frontend powered by Inertia.js.
This kit is JavaScript-first, using JSX instead of TSX, making it accessible to developers who prefer plain JavaScript over TypeScript. It includes React 19, TailwindCSS 4, and Breeze for simple authentication and scaffolding.
🎯 Features
✔️ Laravel – Laravel provides a complete ecosystem for web artisans.
✔️ Laravel Breeze – Lightweight authentication with Inertia.js.
✔️ Laravel Pulse – delivers at-a-glance insights into your application's performance and usage.
✔️ Orion – The simplest way to create REST API with Laravel.
✔️ Inertia.js – Create modern single-page React, Vue, and Svelte apps using classic server-side routing.
✔️ React 19 + JSX – Simple, clean, and TypeScript-free.
✔️ React Icons – Include popular icons in your React projects easily with react-icons.
✔️ TanStack Query – Powerful asynchronous state management for TS/JS.
✔️ Zustand – A small, fast, and scalable bearbones state management solution.
✔️ Laravel-Spatie-permission – Associate users with roles and permissions.
✔️ TailwindCSS 4 – Modern styling with utility-first CSS.
✔️ Vite-Powered – Lightning-fast HMR for smooth development.
✔️ Pre-configured Testing – Includes PHPUnit & Pest.
✔️ Hero UI – Beautiful, fast and modern React UI library for building accessible and customizable web applications.
✔️ Quick Setup – Get started in minutes!
🛠 Getting Started
1️⃣ Install the Yui Installer
Install the Yui installer globally using Composer:
composer global require luis-developer-08/yui-installer
2️⃣ Create a New Laravel Project
Use the Yui installer to generate a new Laravel project:
yui new my-laravel-app
3️⃣ Select Your Database
During installation, you will be prompted to choose a database. Select the one you want by entering the corresponding number:
[0] sqlite [1] mysql
4️⃣ Choose a UI Provider
[0] None [1] Hero UI
5️⃣ Navigate to Your Project Directory
After the project is created, navigate to the project folder:
cd my-laravel-app
6️⃣ Start the Development Server
Run the following command to start the development server:
composer run dev
🎉 Your application is now configured and running!
⚡ Create Inertia Components Easily
This starter kit includes a custom Artisan command to quickly generate Inertia.js React components with flexible directory options.
🏗️ Generate a New Component
php artisan make:inertia Components/MyComponent
This will create:
resources/js/Components/MyComponent.jsx
📂 Flexible Folder Placement
You can specify different folders using flags:
-cor--components: Create the component inresources/js/Components/-lor--layouts: Create the component inresources/js/Layouts/-sor--sections: Create the component inresources/js/Sections/-por--pages: Create the component inresources/js/Pages/
✅ Example usage with flags:
php artisan make:inertia Dashboard -p
Creates:
resources/js/Pages/Dashboard.jsx
You can also create nested folders like:
php artisan make:inertia Components/Auth/Login
Creates:
resources/js/Components/Auth/Login.jsx
✨ Example Generated Component
import React from "react"; const MyComponent = () => { return <div>{/* MyComponent component */}</div>; }; export default MyComponent;
🚀 Smart Behavior
- Automatically prevents duplicate folder nesting.
- Opens the newly created file in your default editor.
- Ensures the correct folder placement, whether using flags or specifying the path.
This command ensures that components are placed in the correct directory and prevents overwriting existing files. It also automatically opens the newly created file for editing.
⚡ Create Orion Controllers Easily
This starter kit also includes a command to quickly generate Orion controllers along with their associated models:
🏗️ Generate a New Orion Controller
php artisan make:orion PostController
This will create:
app/Http/Controllers/Orion/PostController.phpapp/Models/Post.php(if it doesn’t exist)- Adds a route in
routes/api.php
📂 File Structure
app/Http/Controllers/Orion/PostController.php
app/Models/Post.php
✨ Example Generated Controller
<?php namespace App\Http\Controllers\Orion; use Orion\Http\Controllers\Controller; use App\Models\Post; class PostController extends Controller { protected $model = Post::class; }
🔗 Auto-Registered Route in routes/api.php
Orion::resource('posts', \App\Http\Controllers\Orion\PostController::class)->middleware(['auth', 'web']);
This command ensures that controllers are correctly placed, models are created if missing, and routes are automatically registered.
📖 Documentation
For more details on YUI, visit the official YUI Website.
🤝 Contributing
We welcome contributions! Check out the Laravel contribution guide to get involved.
📜 Code of Conduct
Be kind and respectful. Please follow Laravel's Code of Conduct.
⚖️ License
This starter kit is open-source under the MIT license.
luis-developer-08/yui-default_ui 适用场景与选型建议
luis-developer-08/yui-default_ui 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 03 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 luis-developer-08/yui-default_ui 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 luis-developer-08/yui-default_ui 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 luis-developer-08/yui-default_ui 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Alfabank REST API integration
High-performance, opinionated PHP 8 web framework with O(1) routing, parallel async MySQL, type-safe asset bridge, and React-island frontend
Laravel package for Accurate Online API integration.
The skeleton application for the Geoffrey agent framework.
Shared RCX Laravel DataTables UI and configuration helpers.
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 23
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-20