承接 skywalker-labs/ui 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

skywalker-labs/ui

最新稳定版本:v1.0.0

Composer 安装命令:

composer require skywalker-labs/ui

包简介

Frontend presets and powerful UI utilities for Laravel applications by Skywalker Labs.

README 文档

README

Build Status Latest Version on Packagist Total Downloads PHP from Packagist License

A powerful, incredibly simple, and lightning-fast frontend scaffolding package for Laravel applications by Skywalker Labs.

Whether you are a Junior Developer starting your first project or a Senior Engineer looking for a rapid and proven frontend foundation, Skywalker UI gives you everything you need. It provides a robust starting point using Bootstrap 5, React, or Vue.

With a single command, you can scaffold complete authentication flows, responsive views, and a modern Vite build pipeline! 🚀

🌟 Key Features

  • Instant Authentication System: Generates Login, Registration, Password Reset, and Verification flows in seconds.
  • Frontend Presets: Choose seamlessly between Bootstrap, Vue.js, or React.js.
  • Vite Integration: Out-of-the-box hot-module replacement (HMR) and insanely fast asset compilation.
  • Clean Architecture: Generates fully customizable Blade templates (resources/views/auth).
  • Beginner Friendly: No complex logic hidden from you. All controllers and views are published to your app so you can learn and customize freely!

⚡ Installation Guide

You can install the package effortlessly using Composer. Open your terminal at the root of your Laravel project:

composer require skywalker-labs/ui

Note: This package is fully compatible with Laravel 9.x, 10.x, 11.x, and 12.x out-of-the-box.

🛠️ Usage & Scaffolding

Once installed, you can use the newly available ui Artisan command to install the frontend scaffolding of your choice.

1. Basic Frontend Scaffolding

If you only want to set up the CSS/JS framework (without authentication views), run one of the following commands:

# For a clean Bootstrap 5 setup
php artisan ui bootstrap

# For a modern Vue.js setup
php artisan ui vue

# For a robust React.js setup
php artisan ui react

2. Full Authentication Scaffolding (Recommended) 🔐

Most projects require a secure login system. You can generate fully functioning login, registration, and dashboard interfaces by appending the --auth flag.

Run one of the following commands:

php artisan ui bootstrap --auth
php artisan ui vue --auth
php artisan ui react --auth

What does the --auth flag do?

  • It publishes HomeController.php to handle your dashboard routes.
  • It injects Auth::routes(); into your routes/web.php file automatically.
  • It creates a beautiful layouts/app.blade.php master template.
  • It scaffolds all the necessary forms in resources/views/auth/.

3. Compile Your Assets

After choosing your preset, you must install the NPM packages and compile your fresh assets using Vite:

npm install
npm run dev

For production deployment, you would run npm run build instead.

📝 Customizing Your Setup

Skywalker UI is designed to give you 100% control over your application.

Understanding the Routes

When you run the --auth command, this line is added to routes/web.php:

Auth::routes();

This single line registers all the standard authentication endpoints (/login, /register, /password/reset, etc.).

Modifying the Views

All the generated views are placed directly in your resources/views/ directory. You can easily modify the HTML or Blade structure by editing these files:

  • resources/views/layouts/app.blade.php (The main wrapper/navbar)
  • resources/views/auth/login.blade.php
  • resources/views/auth/register.blade.php

Writing CSS/SASS

We natively support Vite, the high-performance build tool utilized across modern Laravel systems. Configuration defaults compile your starting resources/sass/app.scss file seamlessly. The generated output is neatly bundled and instantly accessible via your browser upon hitting npm run dev.

Writing JavaScript

Whether you drop in raw ES6 logic, single-file Vue components (ExampleComponent.vue), or React files, Vite takes your resources/js/app.js file, integrates Bootstrap / Vue framework dependencies natively, and outputs rapid, hot-reloading code immediately.

🎨 Extending Presets (Advanced)

As a package developer or heavily customized team, you can easily write your own custom presets using Laravel's powerful macroable system directly from your Service Providers!

Add this to the boot method of your AppServiceProvider:

use Skywalker\Ui\Console\Commands\UiCommand;

UiCommand::macro('nextjs', function (UiCommand $command) {
    // Write logic to scaffold your custom frontend...
    $command->info('Next.js scaffolding installed successfully.');
});

Execute your custom macro seamlessly from the terminal:

php artisan ui nextjs

🧪 Testing

We ensure Skywalker UI remains stable via extensive testing. Run the test suite leveraging Composer:

composer test

or directly via PHPUnit:

vendor/bin/phpunit

📈 Changelog

Please see CHANGELOG for more information on what has changed recently in the 1.x branch.

🤝 Contributing

We love the community! Please see CONTRIBUTING for details on how to write code, submit Pull Requests, and help improve the Skywalker UI ecosystem.

🛡️ Security Vulnerabilities

If you discover any security-related issues, please email ermradulsharma0@gmail.com directly instead of using the public issue tracker. Our Security Policy provides detailed information on disclosure.

🎖️ Credits

📄 License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固