PHPackages                             php3d/stlslice - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. php3d/stlslice

ActiveLibrary[File &amp; Storage](/categories/file-storage)

php3d/stlslice
==============

PHP 7 library for slicing each layer of an STL file

1.1(9y ago)10631MITPHPPHP &gt;=7.0

Since Jul 31Pushed 9y ago1 watchersCompare

[ Source](https://github.com/fgheorghe/stlslice)[ Packagist](https://packagist.org/packages/php3d/stlslice)[ Docs](https://github.com/fgheorghe/stlslice)[ RSS](/packages/php3d-stlslice/feed)WikiDiscussions master Synced today

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

php3d/stlslice
==============

[](#php3dstlslice)

[![Build Status](https://camo.githubusercontent.com/68f08c87034c10760b704079b0126fe9e64603d43683c9a49bcba52c5dea96cc/68747470733a2f2f7472617669732d63692e6f72672f666768656f726768652f73746c736c6963652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fgheorghe/stlslice)

Synopsis
--------

[](#synopsis)

This library provides PHP 7 functionality for slicing STL formatted 3D objects, and converting them to SVG or GCODE.

NOTE: GCode conversion is highly experimental - change to suit your needs.

NOTE: Requires bcscale(16);

Set-up
------

[](#set-up)

Add this to your composer.json file:

```
  [...]
  "require": {
      [...]
      "php3d/stlslice": "1.*"
  }
```

Then run composer:

```
composer.phar install
```

Examples
--------

[](#examples)

Extract layers:

```
$layers = (new \php3d\stlslice\STLSlice($stl, 10))->slice();
```

Convert to SVG:

See stl2svg.php

Convert to GCode (milling machine):

See stl2gcode.php

###  Health Score

29

—

LowBetter than 63% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Every ~6 days

Total

2

Last Release

3513d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/33b28c71ffcf4263c2bc6a7f6c5618183bddc41d820b0d5c067295549e0e7f1e?d=identicon)[grosan.flaviu](/maintainers/grosan.flaviu)

---

Top Contributors

[![fgheorghe](https://avatars.githubusercontent.com/u/1872824?v=4)](https://github.com/fgheorghe "fgheorghe (16 commits)")

---

Tags

3dstlstereolithography3d printing

### Embed Badge

![Health badge](/badges/php3d-stlslice/health.svg)

```
[![Health](https://phpackages.com/badges/php3d-stlslice/health.svg)](https://phpackages.com/packages/php3d-stlslice)
```

###  Alternatives

[knplabs/knp-gaufrette-bundle

Allows to easily use the Gaufrette library in a Symfony project

73628.2M84](/packages/knplabs-knp-gaufrette-bundle)[google/cloud-storage

Cloud Storage Client for PHP

34388.1M95](/packages/google-cloud-storage)[webimpress/safe-writer

Tool to write files safely, to avoid race conditions

37839.2M25](/packages/webimpress-safe-writer)[league/flysystem-bundle

Symfony bundle integrating Flysystem into Symfony applications

40028.5M67](/packages/league-flysystem-bundle)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26820.5M29](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2861.6M57](/packages/creocoder-yii2-flysystem)

PHPackages © 2026

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