承接 muffin-hayate/yii-sail 相关项目开发

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

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

muffin-hayate/yii-sail

最新稳定版本:v1.0

Composer 安装命令:

composer require muffin-hayate/yii-sail

包简介

Docker files for running a basic Yii application.

关键字:

README 文档

README

Yii Sail

Total Downloads Latest Stable Version License

Commands

Install Services

php yii sail/install

Add new Services

php yii sail/add

Use Sail

./vendor/bin/sail ...

or.. use this nice alias from the Laravel Sail Documentation:

alias sail='sh $([ -f sail ] && echo sail || echo vendor/bin/sail)'

to then use it like

sail ... (from the root folder of the project)

Changes

  • Refactoring:
    • Removed as many Laravel dependencies as possible (there's no need for the framework here)
    • Switched from Illuminate\Console\Command to low-level Symfony Commands
    • Path references updated to the muffin-hayate/yii-sail absolute vendor path
  • Added configurations (config/params.php & composer.json > extras) necessary to register the sail commands in a Yii Application
  • Changed the start-command for the PHP Application (from artisan serve to yii serve) in the Dockerfiles (PHP Runtimes)
  • Removed the following Features:
    • .styleci.yml preset changed from "laravel" to "psr-12"
    • all debugging commands removed (these were artisan specific)
    • artisan command replaced with yii command
    • sail test moved from PHPUnit to Codeception (specifically the composer test command)
    • dusk & pint commands removed (pint is laravel specific, dusk is inferior to codeception imo)
    • sail tinker command removed (laravel exclusive)
    • all sharing features removed
    • command to publish configuration files removed (laravel exclusive)
  • Added the following features:
    • codeception command added
    • psalm & rector commands added

Perspective / To-Do

  • Thinking about removing the illuminate/collections package
  • Maybe implementing a way to manipulate yii config files when installing / adding a service (like it's done with the .env in Laravel Sail) - (likely too complicated because it all depends on external packages etc...)
  • Adding more hooks into Yii specific functionalities for the sail script (needs more Yii research on my end)

Logo Laravel Sail

Total Downloads Latest Stable Version License

Introduction

Sail provides a Docker powered local development experience for Laravel that is compatible with macOS, Windows (WSL2), and Linux. Other than Docker, no software or libraries are required to be installed on your local computer before using Sail. Sail's simple CLI means you can start building your Laravel application without any previous Docker experience.

Inspiration

Laravel Sail is inspired by and derived from Vessel by Chris Fidao. If you're looking for a thorough introduction to Docker, check out Chris' course: Shipping Docker.

Official Documentation

Documentation for Sail can be found on the Laravel website.

Contributing

Thank you for considering contributing to Sail! You can read the contribution guide here.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

Laravel Sail is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 514
  • 开发语言: Shell

其他信息

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