定制 manialib/maniascript 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

manialib/maniascript

Composer 安装命令:

composer require manialib/maniascript

包简介

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

README 文档

README

Unstable!

Standalone PHP component to help developing Maniascript applications for the Manialink browser. This is part of Manialib.

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.

See Manialib\Maniascript\AutoloaderInterface for reference.

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

todo

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

See /example

统计信息

  • 总下载量: 80
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-01