cloudbase/loom-spinner 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

cloudbase/loom-spinner

最新稳定版本:3.3.0

Composer 安装命令:

composer require cloudbase/loom-spinner

包简介

A simple command-line Docker environment spinner for PHP.

README 文档

README

Version 3.3.0 License GPL-3.0-or-later

Loom Spinner is a streamlined environment management tool for PHP developers.

It makes launching minimal, pre-configured Docker containers effortless, providing a fast, consistent, and hassle-free workflow for your projects.

Run simple commands from anywhere on your system to manage your environments.

This project is built for Linux and has not been fully tested on Windows or MacOS. Full Windows/MacOS support is planned for a future release.

At a Glance

Effortlessly create custom Docker environments for each of your PHP projects. A default Loom Spinner environment provides:

  • PHP 8.4 (with XDebug & OpCache)
  • Nginx
  • MySQL 9.3
  • NodeJS 25 (Node, NPM, & NPX)

Your project directory is automatically mounted into the PHP container, and the public directory is served via Nginx at:

https://{project-name}.app

You can access the container directly from your terminal to run tests or other commands in an isolated environment.

Installation

Requirements:

  • Composer
  • Docker Desktop or Docker Engine

To install globally, run:

composer global require cloudbase/loom-spinner

Optional HTTPS/SSL Support

For prettified https://{project-name}.app URLs, install mkcert before using Loom Spinner.

Linux example:

sudo apt install mkcert libnss3-tools
mkcert -install

Quick Start

Spin up your project and add the hosts entry in a single sequence:

cd /path/to/my-project
loom spin:up my-project .
sudo loom env:hosts:add my-project

✅ This will create the Docker containers (PHP, Nginx, MySQL) and ensure your system can resolve http://my-project.app for clean URLs.

Usage

Launch a new environment:

loom spin:up my-project /path/to/my-project

Or from the project directory:

cd /path/to/my-project
loom spin:up my-project .

Hosts Entry

To access your project via the browser, add an entry to /etc/hosts:

sudo loom env:hosts:add my-project

Database Credentials

Your default database credentials are:

Username Password
root docker

To see which port your database container is using, run:

loom env:list

You can customise your credentials, see the Configuration section of the documentation for more details.

Managing Your Environment

Action Command
Stop containers loom spin:stop my-project
Start containers loom spin:start my-project
Attach to PHP container loom spin:attach my-project
Destroy environment loom spin:down my-project
List all environments loom env:list

Happy spinning! 🧵

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2025-10-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固