PHPackages                             yogarine/crayta-stubs - 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. yogarine/crayta-stubs

Abandoned → [yogarine/crayta-stub-generator](/?search=yogarine%2Fcrayta-stub-generator)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

yogarine/crayta-stubs
=====================

Lua stubs for Crayta

v2.1.1(4y ago)115MITHTMLPHP &gt;=7

Since Jan 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Yogarine/crayta-stub-generator)[ Packagist](https://packagist.org/packages/yogarine/crayta-stubs)[ Docs](https://github.com/Yogarine/crayta-stub-generator)[ RSS](/packages/yogarine-crayta-stubs/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (13)Used By (0)

Crayta Stub Generator
=====================

[](#crayta-stub-generator)

Lua stub generator for the Crayta API Docs.

Crayta is a Free Game Creation Game. Go check it out here: ()

Requirements:
-------------

[](#requirements)

- PHP 7.0 or higher ()
- Composer ()
- Legendary ()

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

[](#installation)

Add this package to your project by running `composer require yogarine/crayta-stub-generator`or install it globally using `composer global require yogarine/crayta-stub-generator`.

Usage
-----

[](#usage)

Run `vendor/bin/create-crayta-stubs` from your project dir, or `create-crayta-stubs` if installed globally, to generate the stubs. They will be placed in the `stubs` subdirectory of the current working directory.

Development
-----------

[](#development)

### Updating the LuaDocs xml files (using Legendary)

[](#updating-the-luadocs-xml-files-using-legendary)

1. Install and configure Legendary (see )

    - Installation on macOS:
        1. `brew install python3.9`
        2. `pip3 install legendary-gl`
    - Configuration:
        1. `legendary auth`
2. Run `legendary list-games` to get the proper `app name`:

    ```
    legendary list-games
    ```

    The `app name` might be a 32 character hash like `a0a49d82e3f64c1b81873397a6e92f09`.
3. Install the app with the given app name:

    ```
    legendary install a0a49d82e3f64c1b81873397a6e92f09
    ```
4. Copy over de LuaDocs.

    ```
    cp -af ~/legendary/Crayta/Crayta/Content/LuaDocs/* LuaDocs/
    ```

Disclaimer
----------

[](#disclaimer)

This project isn't officially affiliated with Crayta, nor it's developer, Unit 2 Games, in any way. Crayta is a registered trademark and the Crayta stubs and the documentation it includes are Copyrighted by Unit 2 Games. The stubs may be distributed for the promotion of Crayta only, as per Unit 2 Games' Terms of Service.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Recently: every ~38 days

Total

12

Last Release

1716d ago

Major Versions

v1.1.1 → v2.0.02021-03-31

PHP version history (2 changes)v1.0.0PHP &gt;=8

v1.1.0PHP &gt;=7

### Community

Maintainers

![](https://www.gravatar.com/avatar/17518a08933290f58c1665feec25cf0939d1c6413b7b4cc25ef6d965b9fcc473?d=identicon)[Alwin Garside](/maintainers/Alwin%20Garside)

---

Top Contributors

[![AlwinGarside](https://avatars.githubusercontent.com/u/193043?v=4)](https://github.com/AlwinGarside "AlwinGarside (34 commits)")

---

Tags

craytacrayta-stub-generatorlua-stub-generatorstubsstubsCrayta

### Embed Badge

![Health badge](/badges/yogarine-crayta-stubs/health.svg)

```
[![Health](https://phpackages.com/badges/yogarine-crayta-stubs/health.svg)](https://phpackages.com/packages/yogarine-crayta-stubs)
```

###  Alternatives

[jetbrains/phpstorm-stubs

PHP runtime &amp; extensions header files for PhpStorm

1.4k27.7M68](/packages/jetbrains-phpstorm-stubs)[phalcon/ide-stubs

The most complete Phalcon Framework IDE stubs library which enables autocompletion in modern IDEs.

1623.1M121](/packages/phalcon-ide-stubs)[bazilio/yii2-stubs-generator

Yii2 component stubs generator for Yii::$app

146720.4k1](/packages/bazilio-yii2-stubs-generator)[bpocallaghan/generators

Custom Laravel File Generators with config and publishable stubs.

11965.8k3](/packages/bpocallaghan-generators)

PHPackages © 2026

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