phpscript

manual

Manual

phpscript manual

The namespaces, classes and functions the phpscript runtime registers, one page each.

phpscript runs PHP on a Go runtime. This manual indexes the names that runtime answers to: the global functions, the classes it declares, and the static methods it binds on a class name. One page each, with the call syntax that reaches it.

Start here

  • Reference

    Every namespace, class and function in one index, with a filter over it.

  • Classes

    Types to construct, and class names that answer static calls.

  • Functions

    Callables by name, methods included.

Three kinds of name

A backslash separates a namespace from the name under it: Time\Duration is the class Duration under Time. A double colon separates a class from a static method bound on it: DateTime::now is now() on DateTime. A name without a separator is global, and every scope reaches it under that one name.

A class name need not have a type behind it. DateTime answers DateTime::now() and refuses new DateTime(); each class page says which of the two applies.