Download the PHP package crodas/artifex without Composer
On this page you can find all versions of the php package crodas/artifex. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download crodas/artifex
More information about crodas/artifex
Files in crodas/artifex
Download crodas/artifex
More information about crodas/artifex
Files in crodas/artifex
Vendor crodas
Package artifex
Short Description Macros on steroids. The easiest way of generating code.
License
Package artifex
Short Description Macros on steroids. The easiest way of generating code.
License
Please rate this library. Is it a good library?
Informations about the package artifex
Artifex
Artifex is a pre-processor for PHP. It aims to generate PHP code in a very simple and intuitive way.
Syntax
Artifex syntax is heavily inspired by C preprocessors, but instead of starting with #
(which is a comment in PHP), they starts with #*
Artifex also support multiline in a convinient way.
In order to replace a value, it must be surrounded by __
, for instance:
The syntax is heavily inspired by PHP, although there are some differences:
- The semicolon is not needed (they are optional).
- Any string which is not assigned will be printed out.
#* "hello there"
is equal to#* print("hello there")
- Curly Brackets are not valid, instead there is a generic
end
token to tell where a block ends - Variables that are prepend with a
@
caracter means that we want to representate its value (same as callingvar_exports
). - It supports json.
Iterators
So far Artifex support foreach
All versions of artifex with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package crodas/artifex contains the following files
Loading the files please wait ....