PHPackages                             carmelosantana/coqui-toolkit-slicedd - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. carmelosantana/coqui-toolkit-slicedd

ActiveLibrary

carmelosantana/coqui-toolkit-slicedd
====================================

3D printing toolkit for Coqui — OrcaSlicer CLI wrapping, G-code analysis/manipulation, slice job tracking, and print farm management

v0.1.0(1mo ago)00MITPHPPHP ^8.4CI failing

Since Apr 9Pushed 1mo agoCompare

[ Source](https://github.com/carmelosantana/coqui-slicedd)[ Packagist](https://packagist.org/packages/carmelosantana/coqui-toolkit-slicedd)[ RSS](/packages/carmelosantana-coqui-toolkit-slicedd/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Slicedd
=======

[](#slicedd)

A Coqui toolkit for 3D printing with OrcaSlicer. Slice 3D models, analyze and post-process G-code, and track job history — all through conversational AI.

Requirements
------------

[](#requirements)

- PHP 8.4+
- [OrcaSlicer](https://github.com/SoftFever/OrcaSlicer/releases) installed and available in PATH (or configured via `ORCA_SLICER_PATH`)
- [Coqui](https://github.com/coquibot/coqui) with `carmelosantana/php-agents`

Installation
------------

[](#installation)

```
composer require coquibot/coqui-toolkit-slicedd
```

Coqui auto-discovers the toolkit on startup. No manual registration needed.

Tools
-----

[](#tools)

### `slicer` — OrcaSlicer CLI Wrapper

[](#slicer--orcaslicer-cli-wrapper)

ActionDescription`check_deps`Verify OrcaSlicer is installed and available`slice`Slice a 3D model (STL, 3MF, STEP, OBJ, AMF) with profiles and overrides`info`Get OrcaSlicer version and binary info`export_settings`Export slicer settings from a 3MF project`export_3mf`Export a model as a 3MF project file`export_stl`Export a model as STL`list_profiles`Discover available machine, process, and filament profiles`job_history`Query slice job history with statistics### `gcode` — G-code Analysis &amp; Post-Processing

[](#gcode--g-code-analysis--post-processing)

ActionDescription`analyze`Full analysis: print stats, layer count, command counts, file size`stats`Extract metadata from G-code header/footer comments`layers`Find all layer change positions and Z heights`commands`Search for specific G-code commands (G28, M104, etc.)`modify`Post-process G-code (inject commands, change temps, timelapse, etc.)`validate`Check G-code structure for common issues#### Modifications

[](#modifications)

TypeDescription`inject_after_layer`Insert custom G-code at a specific layer`bed_clear`Append bed presentation/clearing sequence`prepend_start`Add custom start G-code before first command`replace_temp`Change nozzle and/or bed temperatures`timelapse`Inject timelapse triggers at every layer (Moonraker or custom)`filament_change`Insert M600 filament change at a layer`pause`Insert M0 pause at a layerConfiguration
-------------

[](#configuration)

### OrcaSlicer Binary

[](#orcaslicer-binary)

The toolkit searches for the OrcaSlicer binary in this order:

1. `ORCA_SLICER_PATH` environment variable / credential
2. `orca-slicer` in PATH
3. `OrcaSlicer` in PATH
4. `orca_slicer` in PATH

Set the credential through Coqui:

```
Set my OrcaSlicer path to /usr/local/bin/orca-slicer

```

### Profiles

[](#profiles)

OrcaSlicer profiles are discovered from the standard config directory:

- **Linux**: `~/.config/OrcaSlicer/user///*.json`
- **macOS**: `~/Library/Application Support/OrcaSlicer/user///*.json`

Profile types: `machine`, `process`, `filament`

You can also provide custom profile JSON files by path.

Example Conversations
---------------------

[](#example-conversations)

**Slice a model:**

> Slice my benchy.stl with the Ender 3 S1 Pro profile at 0.2mm layer height

**Analyze G-code:**

> Analyze the G-code file at /home/user/prints/benchy.gcode

**Post-process for timelapse:**

> Add Moonraker timelapse triggers to my G-code file

**Check print stats:**

> Show me my slice job history and total filament usage

**Modify temperatures:**

> Change the nozzle temperature to 210°C in my G-code file

Architecture
------------

[](#architecture)

```
src/
├── SliceddToolkit.php          # Toolkit entry point (auto-discovered)
├── Gcode/
│   ├── GcodeModifier.php       # G-code post-processing (immutable, file-based)
│   ├── GcodeParser.php         # G-code file reader and analyzer
│   └── GcodeStats.php          # Parsed statistics value object
├── Runtime/
│   ├── DependencyChecker.php   # Binary resolution and availability
│   ├── OrcaSlicerRunner.php    # CLI wrapper (proc_open, timeout, truncation)
│   └── SlicerResult.php        # Immutable CLI result value object
├── Storage/
│   └── JobStore.php            # SQLite job history (WAL mode)
└── Tool/
    ├── GcodeTool.php           # G-code ToolInterface implementation
    └── SlicerTool.php          # Slicer ToolInterface implementation

```

Development
-----------

[](#development)

```
# Install dependencies
composer install

# Run tests
composer test
# or
./vendor/bin/pest

# Static analysis
./vendor/bin/phpstan analyse
```

Roadmap
-------

[](#roadmap)

### Phase 2 — Fleet Management

[](#phase-2--fleet-management)

- Moonraker API client for Klipper-based printers
- Bambu MQTT client for P1S/X1 series
- Printer status monitoring and job queue
- Remote file upload and print start

### Phase 3 — Material &amp; Monitoring

[](#phase-3--material--monitoring)

- Material/spool tracking (weight, cost, usage)
- Print time estimation improvements
- Build plate and nozzle wear tracking

License
-------

[](#license)

MIT

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance93

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

34d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/597820?v=4)[Carmelo Santana](/maintainers/carmelosantana)[@carmelosantana](https://github.com/carmelosantana)

---

Top Contributors

[![carmelosantana](https://avatars.githubusercontent.com/u/597820?v=4)](https://github.com/carmelosantana "carmelosantana (1 commits)")

---

Tags

toolkitphp-agentscoqui3d printingorcaslicergcodeslicerprint-farm

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/carmelosantana-coqui-toolkit-slicedd/health.svg)

```
[![Health](https://phpackages.com/badges/carmelosantana-coqui-toolkit-slicedd/health.svg)](https://phpackages.com/packages/carmelosantana-coqui-toolkit-slicedd)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
