PHPackages                             manialib/maniascript - 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. manialib/maniascript

ActiveLibrary

manialib/maniascript
====================

Autoloader, Compiler and a few Maniascript libraries to ease the developement of Maniascript applications.

0801[1 issues](https://github.com/manialib/maniascript/issues)PHP

Since Apr 8Pushed 11y ago3 watchersCompare

[ Source](https://github.com/manialib/maniascript)[ Packagist](https://packagist.org/packages/manialib/maniascript)[ RSS](/packages/manialib-maniascript/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Manialib\\Maniascript
=====================

[](#manialibmaniascript)

> **Unstable!**

Standalone PHP component to help developing Maniascript applications for the Manialink browser. This is part of [Manialib](https://github.com/manialib/manialib).

Autoloader
----------

[](#autoloader)

`Manialib\Maniascript\Autoloader` provides a way to automatically load a Maniascript file, given it's library name (eg. "Manialib/Logger.Script.txt") and a set of include paths. It's inspired from [PHP's PSR-4](http://www.php-fig.org/psr/psr-4/).

See [Manialib\\Maniascript\\AutoloaderInterface](https://github.com/manialib/maniascript/blob/master/src/Manialib/Maniascript/AutoloaderInterface.php) for reference.

Compiler
--------

[](#compiler)

`Manialib\Maniascript\Compiler` helps partitioning a Maniascript application in several files when you cannot use normal #Include directives (eg. when writing a Maniascript application for the Manialink browser). It will replace the "include as" directives recursively, eventually providing a single script.

Libraries
---------

[](#libraries)

*todo*

Limitations
-----------

[](#limitations)

Right now, included libraries must be written with "full namespaces", compared to standard #Includes where you only define the function name, not the fully qualified function name.

Eg. if you're using `#Include "Manialib/Logger.Script.txt" as Logger` and `Logger::Info()`, the `Info()` function in the Logger library will be defined as `Manialib_Logger_Info()` whereas with standard #Includes it would be defined as `Info()`.

Example
-------

[](#example)

See [/example](https://github.com/manialib/maniascript/blob/master/example)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/194d53bc2cfc60dd7fc1d45d293fe0e732064c003f91716c9045cb09a985a8a4?d=identicon)[magnetik](/maintainers/magnetik)

![](https://avatars.githubusercontent.com/u/445622?v=4)[Maxime Raoust](/maintainers/gou1)[@gou1](https://github.com/gou1)

![](https://avatars.githubusercontent.com/u/1850524?v=4)[satanasdiabolo](/maintainers/satanasdiabolo)[@satanasdiabolo](https://github.com/satanasdiabolo)

---

Top Contributors

[![gou1](https://avatars.githubusercontent.com/u/445622?v=4)](https://github.com/gou1 "gou1 (13 commits)")[![magnetik](https://avatars.githubusercontent.com/u/345029?v=4)](https://github.com/magnetik "magnetik (2 commits)")

### Embed Badge

![Health badge](/badges/manialib-maniascript/health.svg)

```
[![Health](https://phpackages.com/badges/manialib-maniascript/health.svg)](https://phpackages.com/packages/manialib-maniascript)
```

PHPackages © 2026

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