承接 stevedobe/laravel-svelte 相关项目开发

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

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

stevedobe/laravel-svelte

Composer 安装命令:

composer require stevedobe/laravel-svelte

包简介

Replace Vue with Svelte in a fresh Laravel Breeze or Laravel Jetstream installation.

README 文档

README

Latest Version on Packagist Total Downloads

This package replaces Vue with Svelte and Typescript support in a fresh Laravel Breeze or Laravel Jetstream installation and optionally adds Eslint, Prettier, and Cypress or Playwright.

I only intended Laravel Svelte for fresh Laravel Breeze or Laravel Jetstream installations with Inertia and Vue. Because of this, I will continue implementing changes made to Breeze and Jetstream into this package to remain in sync with Laravel installations.

This package will respect and keep in place any of the options provided to or excluded from your installation, such as dark mode, Pest, SSR and Teams support.

However, two opinionated changes occur to your Laravel installation:

  • It installs TypeScript. You may choose to remove it, but please consider the value it provides.
  • It removes Ziggy. You may reinstall it if you like.

Installation

First, install a fresh copy of Laravel Breeze or Laravel Jetstream with Inertia and Vue.

Then, install Laravel Svelte via Composer

composer require stevedobe/laravel-svelte

Usage

If you wish to know exactly what this package changes to a Laravel installation, create a Git repository for your project now with an initial commit.

Optional Step

You may publish Laravel Svelte's configuration file to config/laravel-svelte.php and modify it as needed. I can only think of two reasons why you may want to do this:

  • Your Laravel installation is not running Breeze 2.3 or Jetstream 5.3.

    • Laravel Svelte is bound to, and may only work for, specific versions of Breeze and Jetstream. It currently supports the abovementioned versions. If you are running a different version of Breeze or Jetstream, you need to change the compatibleWith settings in Laravel Svelte's configuration file. If your version of Breeze or Jetstream does not match the corresponding compatibleWith version, the package will throw an exception.
  • You want to control the versions of the installed Node packages. These are listed in the configuration file.

php artisan vendor:publish --provider="SteveDobe\LaravelSvelte\LaravelSvelteServiceProvider"

Execute

To swap out Vue with Svelte, run the following command. You will be prompted to optionally install Eslint, Prettier and Cypress or Playwright.

php artisan stevedobe:swap-vue-with-svelte

Notes

  • Helpers have been added to package.json to aid in formatting, checking and testing your application. Feel free to modify or remove any of these.
  • If you have based your project on Laravel Jetstream and you have installed Cypress, ensure you keep the features in cypress.config.js in sync with config/fortify.php and config/jetstream.php.
  • If you have based your project on Laravel Jetstream and you have installed Playwright, ensure you keep the features in tests/Playwright/e2e/helpers.ts in sync with config/fortify.php and config/jetstream.php.
  • If you have installed Cypress, you may need to change the port number of the baseUrl in cypress.config.js. Watch for what port php artisan serve has provided.
  • If you have installed Playwright, you may need to run 'npx playwright install'.
  • If you have installed Playwright, you may need to change the port number of the baseUrl in playwright.config.ts. Watch for what port php artisan serve has provided.

Change log

Please see the changelog for more information on what has changed recently.

Contributing

Please see contributing.md for details.

Security

If you discover any security-related issues, please email steve.dobe@webtend.com.au instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.

stevedobe/laravel-svelte 适用场景与选型建议

stevedobe/laravel-svelte 是一款 基于 Svelte 开发的 Composer 扩展包,目前已累计 175 次下载、GitHub Stars 达 8, 最近一次更新时间为 2024 年 08 月 01 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「laravel」 「breeze」 「svelte」 「jetstream」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 stevedobe/laravel-svelte 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 stevedobe/laravel-svelte 我们能提供哪些服务?
定制开发 / 二次开发

基于 stevedobe/laravel-svelte 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 1
  • 开发语言: Svelte

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-01