loom-spinner-cli/README.md

82 lines
2.3 KiB
Markdown
Raw Normal View History

2025-04-24 10:24:17 +01:00
<p>
2025-04-24 14:05:50 +01:00
<img src="https://forge.winningsoftware.co.uk/LoomLabs/loom-spinner-cli/media/branch/main/header.jpg" alt="Loom Spinner CLI Header Image & Logo" style="width: 100%; height: auto;">
2025-04-24 10:24:17 +01:00
</p>
2025-04-24 03:51:17 +01:00
2025-04-24 10:37:53 +01:00
# Loom Spinner CLI
2025-04-24 10:22:52 +01:00
2025-04-24 10:24:17 +01:00
<p>
2025-04-25 02:46:43 +01:00
<img src="https://img.shields.io/badge/Version-1.0.4-blue" alt="Version 1.0.4">
2025-04-24 10:24:17 +01:00
</p>
2025-04-24 10:37:53 +01:00
A streamlined environment management tool for PHP developers.
2025-04-24 10:46:05 +01:00
Loom Spinner makes it easy to launch minimal, thoughtfully pre-configured Docker containers for PHP development; helping
2025-04-24 10:37:53 +01:00
you enjoy a fast, consistent, and hassle-free workflow.
2025-04-24 10:37:53 +01:00
Run simple commands from anywhere on your system to manage your environments.
2025-04-24 10:37:53 +01:00
# At a Glance
2025-04-24 10:37:53 +01:00
Effortlessly create custom Docker environments for each of your PHP projects. Out of the box, Loom Spinner provides:
2025-04-24 10:37:53 +01:00
- **PHP 8.4** (includes XDebug & OpCache)
- **Nginx**
- **SQLite3**
- **NodeJS 23** (Node, NPM, & NPX)
2025-04-24 10:46:05 +01:00
Your project directory is automatically mounted to the PHP container, and the `public` directory is served via Nginx at
`http://localhost:<nginx-port>`. Access the container directly from your terminal to execute unit tests or other
commands, all within an isolated environment.
2025-04-24 10:46:05 +01:00
> **Note:** Loom Spinner CLI is in early development. For now, only SQLite is supported as the database, but more options
> are on the way in future updates.
2025-04-24 03:15:08 +01:00
# Installation
2025-04-13 20:13:19 +01:00
2025-04-24 10:37:53 +01:00
**Requirements:**
- Composer
- Docker Desktop or Docker Engine
2025-04-13 20:13:19 +01:00
2025-04-24 10:37:53 +01:00
To install globally, run:
2025-04-13 20:13:19 +01:00
2025-04-24 03:15:08 +01:00
```shell
composer global require loomlabs/loom-spinner-cli
```
2025-04-13 22:17:49 +01:00
2025-04-24 03:15:08 +01:00
# Usage
2025-04-14 15:25:40 +01:00
2025-04-24 10:37:53 +01:00
Start Docker, then launch your project environment:
2025-04-13 22:17:49 +01:00
2025-04-24 03:15:08 +01:00
```shell
cd /path/to/my-project
loom spin:up my-project .
```
2025-04-24 10:37:53 +01:00
Check which ports your containers are using via Docker Desktop or by running `docker ps`.
2025-04-24 10:37:53 +01:00
Once running, your project's public directory is accessible at `http://localhost:<nginx-container-port>`—you're ready to go!
2025-04-24 00:01:49 +01:00
2025-04-24 10:37:53 +01:00
## Managing Your Environment
2025-04-24 00:01:49 +01:00
2025-04-24 10:37:53 +01:00
To stop your containers:
2025-04-24 00:01:49 +01:00
2025-04-24 03:15:08 +01:00
```shell
loom spin:stop my-project
```
2025-04-24 10:37:53 +01:00
To start them again:
2025-04-24 03:15:08 +01:00
```shell
loom spin:start my-project
```
To remove them completely:
```shell
loom spin:down my-project
```
2025-04-24 10:37:53 +01:00
Loom Spinner can be further customized with a set of simple configuration options. For a more detailed quick-start guide
or advanced configuration tips, check out the [project wiki](https://forge.winningsoftware.co.uk/LoomLabs/loom-spinner-cli/wiki).
2025-04-24 03:15:08 +01:00
Happy spinning! 🧵