定制 carmelosantana/coqui-toolkit-slicedd 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

carmelosantana/coqui-toolkit-slicedd

Composer 安装命令:

composer require carmelosantana/coqui-toolkit-slicedd

包简介

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

README 文档

README

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

  • PHP 8.4+
  • OrcaSlicer installed and available in PATH (or configured via ORCA_SLICER_PATH)
  • Coqui with carmelosantana/php-agents

Installation

composer require coquibot/coqui-toolkit-slicedd

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

Tools

slicer — OrcaSlicer CLI Wrapper

Action Description
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 & Post-Processing

Action Description
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

Type Description
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 layer

Configuration

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

OrcaSlicer profiles are discovered from the standard config directory:

  • Linux: ~/.config/OrcaSlicer/user/<printer>/<type>/*.json
  • macOS: ~/Library/Application Support/OrcaSlicer/user/<printer>/<type>/*.json

Profile types: machine, process, filament

You can also provide custom profile JSON files by path.

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

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

# Install dependencies
composer install

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

# Static analysis
./vendor/bin/phpstan analyse

Roadmap

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 & Monitoring

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

License

MIT

carmelosantana/coqui-toolkit-slicedd 适用场景与选型建议

carmelosantana/coqui-toolkit-slicedd 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 08 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 carmelosantana/coqui-toolkit-slicedd 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-08