PHPackages                             flymouse/php-stl - 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. flymouse/php-stl

ActiveLibrary

flymouse/php-stl
================

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

1.1.2(7y ago)0640MITPHPPHP &gt;=5.4.0

Since Oct 31Pushed 7y ago1 watchersCompare

[ Source](https://github.com/flymouse/php-stl)[ Packagist](https://packagist.org/packages/flymouse/php-stl)[ Docs](http://github.com/ChubV/php-stl)[ RSS](/packages/flymouse-php-stl/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

STL PHP
=======

[](#stl-php)

This repository contains code for handling 3D models saved in STL format.

\##How to get it

The suggested installation method is via [composer](https://getcomposer.org/). Add a dependency on `chubv/stl-php` to your project's `composer.json` file.

\##Usage

To get the model build the `Reader` and read the model from file

`$model = STLReader::forFile(__DIR__ . '/stls/text.stl')->readModel();`

You can use `VolumeHandler` to calculate volume of 3D model without `STLModel` object construction (memory consumption is proportional to model size) or write your own handler by implementing `HandlerInterface` and setting it to reader.

```
    $reader = STLReader::forFile(__DIR__ . '/stls/text.stl');
    $reader->setHandler(new VolumeHandler());
    $volume = $reader->readModel();
```

\##Tests

The PHPUnit version to be used is the one installed as a dev- dependency via composer:

```
$ ./vendor/bin/phpunit
```

\##License

It's under MIT. Look at LICENSE file.

\##Contributing

Feel free to make pull requests or create issues. You can also contact me via e-mail v\[at\]chub.com.ua

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~266 days

Total

4

Last Release

2685d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d91f2cf381147b88351e9301da37fcea46570b715665374db3ec5df9a4dc15a9?d=identicon)[gourdladle](/maintainers/gourdladle)

---

Top Contributors

[![ChubV](https://avatars.githubusercontent.com/u/2264412?v=4)](https://github.com/ChubV "ChubV (4 commits)")[![flymouse](https://avatars.githubusercontent.com/u/223562?v=4)](https://github.com/flymouse "flymouse (2 commits)")

---

Tags

volume3dstl

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/flymouse-php-stl/health.svg)

```
[![Health](https://phpackages.com/badges/flymouse-php-stl/health.svg)](https://phpackages.com/packages/flymouse-php-stl)
```

###  Alternatives

[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

41.5k328.9k1](/packages/ccxt-ccxt)[chubv/php-stl

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

2123.1k](/packages/chubv-php-stl)[jbzoo/simpletypes

The universal PHP library to convert any values and measures

641.8k1](/packages/jbzoo-simpletypes)[libre3d/render-3d

Wrapper library to help render preview images for common 3D file formats.

331.4k](/packages/libre3d-render-3d)

PHPackages © 2026

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