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 1mo ago

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 60% 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

3562d 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

[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.0k](/packages/orchestra-testbench)[laravel/browser-kit-testing

Provides backwards compatibility for BrowserKit testing in the latest Laravel release.

5139.4M285](/packages/laravel-browser-kit-testing)[jasonmccreary/laravel-test-assertions

A set of helpful assertions when testing Laravel applications.

3513.9M32](/packages/jasonmccreary-laravel-test-assertions)[chubv/php-stl

Library to parse STL file and get some statistics of the model

2123.1k](/packages/chubv-php-stl)[unisharp/s3-presigned

An AWS S3 package for pre-signed upload purpose in Laravel and PHP.

141.8k](/packages/unisharp-s3-presigned)

PHPackages © 2026

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