PHPackages                             holonet/sc2calc - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. holonet/sc2calc

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

holonet/sc2calc
===============

SC2 build calculator library based on sc2calc.org

10PHP

Since May 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/matthiaslantsch/sc2calc.org)[ Packagist](https://packagist.org/packages/holonet/sc2calc)[ RSS](/packages/holonet-sc2calc/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#sc2calc library

Build order timing calculator library for SC2 written in PHP

This is a rewrite based on [sc2calc.org](http://sc2calc.org)

Currently this only works with old WOL builds because all the game data has not been updated yet.

Why?
----

[](#why)

I was always interested in the old build order calculator on [sc2calc.org](http://sc2calc.org). It seemed like a cool tool to work with. When I decided to give updating it a shot I realised how old of a web application it was and how much that showed. So instead I opted to rewrite the calculator logic from the old application and sever it from the connected html rendering and in doing so offer the functionality in the form of a library.

This calculator can still be used as a standalone tool using the command line script provided as a vendor binary.

Installation
------------

[](#installation)

The preferred / only way to install the library is via composer:

`composer require holonet/sc2calc`

or update your `composer.json`

```
    ...
    "require": {
        "holonet/sc2calc": "~1.0"
    },
    ...

```

How to use
----------

[](#how-to-use)

#### As a library:

[](#as-a-library)

```
