PHPackages                             webgraphe/phlip - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. webgraphe/phlip

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webgraphe/phlip
===============

Embeddable scripts for PHP

v0.3.0(8y ago)18MITPHPPHP ^7.1CI failing

Since Feb 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/webgraphe/phlip)[ Packagist](https://packagist.org/packages/webgraphe/phlip)[ Docs](https://github.com/webgraphe/phlip)[ RSS](/packages/webgraphe-phlip/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Embeddable scripts for PHP
--------------------------

[](#embeddable-scripts-for-php)

[![Total Downloads](https://camo.githubusercontent.com/171e83e53d05ae34c9e88ce59e45c4db1b1ab06ecc19d0470776dd806a48c77e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7765626772617068652f70686c6970)](https://packagist.org/packages/webgraphe/phlip)[![Latest Stable Version](https://camo.githubusercontent.com/7e0640e309c86c5c6445eee79c562412ab9b1673f5679a8a3e8f0b1a1ccd2308/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7765626772617068652f70686c6970)](https://packagist.org/packages/webgraphe/phlip)[![License](https://camo.githubusercontent.com/7a49ed90e6817da908f75f2303392828c10ff383a042e8fbf267d020c2d0fb84/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7765626772617068652f70686c6970)](https://packagist.org/packages/webgraphe/phlip)

[Phlip](https://github.com/webgraphe/phlip) (pronounced \\ˈflip\\) is an embeddable scripting language for [PHP](https://www.php.net) based on [s-expressions](https://en.wikipedia.org/wiki/S-expression).

### How does it work?

[](#how-does-it-work)

A [lexer](https://en.wikipedia.org/wiki/Lexical_analysis) tokenizes scripts and a [parser](https://en.wikipedia.org/wiki/Parsing#Computer_languages) assembles data structures. A script's behavior originates from data and code elements resolved from a controlled scope.

Integration is simpler with the *Phlipy*[dialect](https://en.wikipedia.org/wiki/Programming_language#Dialects,_flavors_and_implementations).

Refer to `Webgraphe\Phlip\Tests\Unit\ReadmeTest` for the example below:

```
