chubv/php-stl
Composer 安装命令:
composer require chubv/php-stl
包简介
Library to parse STL file and get some statistics of the model
README 文档
README
This repository contains code for handling 3D models saved in STL format.
How to get it
The suggested installation method is via composer.
Add a dependency on chubv/php-stl 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
chubv/php-stl 适用场景与选型建议
chubv/php-stl 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 23.49k 次下载、GitHub Stars 达 21, 最近一次更新时间为 2016 年 10 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「3d」 「stl」 「volume」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 chubv/php-stl 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 chubv/php-stl 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 chubv/php-stl 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PHP wrapper for using DataForSEO API
Universal storage library for store data as key-value pairs
Volume and dimensional calculation utilities for PHP 8.4+
Accessing stored entries as files on some volume
The universal PHP library to convert any values and measures
Wrapper library to help render preview images for common 3D file formats.
统计信息
- 总下载量: 23.49k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 21
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-31