Skip to content

Releases: guregu/php

Orange website edition

13 Jan 14:01
Compare
Choose a tag to compare

To celebrate PHP being featured on the orange website, a new release.

Safe by default

PHP now buffers output and automatically escapes everything that's not inside of an unsafe query. This means you can use the standard ISO predicates like write/1 and other handy ones like format/2 without worrying about getting owned.

<!-- this is safe now -->
<?- query_param(name, Who), format("hello ~w", [Who]). ?>

if and findall blocks (#7)

You can conditionally execute blocks of code/HTML with <?if Goal. ?> ... <?end ?> or <?findall Goal. ?> ... <?end ?>.

This example outputs a table of the current Prolog flags.

<table>
	<tr><th>Flag</th><th>Value</th></tr>
	<?findall current_prolog_flag(Key, Value). ?>
                <!-- Variables from the parent block are available to use: -->
		<tr><td><?=Key ?></td><td><?=Value ?></td></tr>
	<?end ?>
</table>

It works

06 Nov 10:23
Compare
Choose a tag to compare

PHP now uses Trealla's new built-in term parsing DCG stuff so it is very fast, and doesn't get confused by dots anymore.

v0.1.1

18 Aug 07:18
Compare
Choose a tag to compare
  • update to Trealla v2.0.8

Full Changelog: v0.1.0...v0.1.1

v0.1.0

18 Aug 00:54
Compare
Choose a tag to compare