PHPackages                             zanson/sm-parser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. zanson/sm-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

zanson/sm-parser
================

a model and parser for stepmania files (.sm)

v1.2(10y ago)431MITPHPPHP &gt;5.4

Since Aug 23Pushed 10y agoCompare

[ Source](https://github.com/jasonwatt/SMParser)[ Packagist](https://packagist.org/packages/zanson/sm-parser)[ RSS](/packages/zanson-sm-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (8)Used By (0)

Stepmania File Modeler
======================

[](#stepmania-file-modeler)

Conveting SM to SSC and back
----------------------------

[](#conveting-sm-to-ssc-and-back)

```
    $sm = new Zanson\SMParser\FileParser\SM();
    $sm->parse(dirname(__DIR__).'/test.sm');
    $convert = new \Zanson\SMParser\Model\Convert();
    $ssc = $convert->SMtoSSC($sm->song);

```

```
    $ssc = new Zanson\SMParser\FileParser\SSC();
    $ssc->parse(dirname(__DIR__).'/test.sm');
    $convert = new \Zanson\SMParser\Model\Convert();
    $sm = $convert->SSCtoSM($ssc->song);

```

Exporting
---------

[](#exporting)

Exports simply take the object in the parser and return a string to be passed to a file or output of your choosing.

If you are not using the file parser class and just have a model, you must instantiate the parser class, and set the song using setsong($object) then run export.

```
$ssc = new Zanson\SMParser\FileParser\SSC();
$ssc->parse(file_get_contents(dirname(__DIR__) . '/test.ssc'));
file_put_contents($ssc->getFileName(), $ssc->export());

```

```
$ssc = new Zanson\SMParser\Model\SSC();
$parse = new Zanson\SMParser\FileParser\SSC();
$parse->setSong($ssc);
file_put_contents($parse->getFileName(), $parse->export());

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~1 days

Total

7

Last Release

3916d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/674af11ac206daf8ff7f8ccd2aaa03e6a5102ba5429f24cd7a35b3e021994909?d=identicon)[zanson](/maintainers/zanson)

---

Top Contributors

[![jasonwatt](https://avatars.githubusercontent.com/u/4823913?v=4)](https://github.com/jasonwatt "jasonwatt (20 commits)")

### Embed Badge

![Health badge](/badges/zanson-sm-parser/health.svg)

```
[![Health](https://phpackages.com/badges/zanson-sm-parser/health.svg)](https://phpackages.com/packages/zanson-sm-parser)
```

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M170](/packages/hassankhan-config)[meyfa/php-svg

Read, edit, write, and render SVG files with PHP

54613.9M42](/packages/meyfa-php-svg)

PHPackages © 2026

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