Home

Awesome

Frock is Clojure-flavoured PHP.

<p align="center"> <img src="https://chr15m.github.io/frock/screencast.svg"/> </p>

"If you want to produce free-as-in-whatever code that runs on virtually every server in the world with zero friction or configuration hassles, PHP is damn near your only option. If that doesn't scare you, then check your pulse, because you might be dead." Jeff Atwood, 2012

Get

curl https://chr15m.github.io/frock/frock.php > frock.php
chmod 700 frock.php

Use

$ echo '(println "hello world!")' > hello.clj
$ ./frock.php hello.clj > hello.php
$ php hello.php
hello world!

Then php -S 0.0.0.0:8000 & browse to http://localhost:8000/hello.php.

Examples & tutorial

See the examples folder and the tutorial folder.

Security

Please see this note about security.

About

Most of the code here comes from the Make-a-LISP project. The project and the PHP port were both built by Kanaka.

The only original thing this repository brings is a system for building mal-php code into a distributable artifact.

Why?

https://chr15m.github.io/frock-clojure-flavoured-php.html

Frock might be interesting to you if:

Caveats & limitations

Too many to list here. :joy: