PHPackages                             pogotc/phil - 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. pogotc/phil

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

pogotc/phil
===========

PHp Interpreted Lisp

15[3 issues](https://github.com/pogotc/Phil/issues)PHP

Since Jun 9Pushed 11y ago2 watchersCompare

[ Source](https://github.com/pogotc/Phil)[ Packagist](https://packagist.org/packages/pogotc/phil)[ RSS](/packages/pogotc-phil/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Phil
====

[](#phil)

[![License](https://camo.githubusercontent.com/6d0264c8c7929a461a632deec050ca4c26c4121f3bffef1d86e4038d48d6cd0d/68747470733a2f2f706f7365722e707567782e6f72672f62656861742f62656861742f6c6963656e7365)](https://camo.githubusercontent.com/6d0264c8c7929a461a632deec050ca4c26c4121f3bffef1d86e4038d48d6cd0d/68747470733a2f2f706f7365722e707567782e6f72672f62656861742f62656861742f6c6963656e7365)[![Build Status](https://camo.githubusercontent.com/f0311a02d0839a491a3ae0df432ffe2433c710cb6cf8cdfec1bae5968a2a3d6a/68747470733a2f2f7472617669732d63692e6f72672f706f676f74632f5068696c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pogotc/Phil)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/58b2a18a5df464fa7dadccf5d131f8f3bcfb1599fe7765a3776f61ba91e205b1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706f676f74632f5068696c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pogotc/Phil/?branch=master)

PHp Interpreted Lisp.

Phil is a LISP dialect loosely based on the syntax used by Clojure.

Usage
-----

[](#usage)

Phil can either be invoked by running `bin/phil` or using `./phil.phar` (coming soon). Running this will open the REPL where you can run simple commands. The binary also accepts a file path to run code contained in a script file.

Example Code
------------

[](#example-code)

As with all LISP dialects the pattern is `(functionname args)`, so to run a simple Hello World app you run:

```
(println "Hello, World")

```

or to add a list of numbers together:

```
(+ 1 2 3 4) ; returns 10

```

Functions can be declared using the `defn` keyword found in Clojure:

```
(defn sayHello (name) (println (+ "Hello, " name)))

(sayHello "Bob") ; returns "Hello, Bob"

```

Recursive functions and conditionals are also supported allow for code such as:

```
(defn length (xs)
	(if
	    (= 0 (count xs))
	    0
	    (+ 1 (length (rest xs)))
    )
)

(length '(1 2 3 4 5)) ; returns 5

```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b42149364e19a530a7467dfd36b478edeb61ee331dda5f83e86282e70b125b25?d=identicon)[pogotc](/maintainers/pogotc)

---

Top Contributors

[![steveellisdev](https://avatars.githubusercontent.com/u/304623?v=4)](https://github.com/steveellisdev "steveellisdev (4 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")

### Embed Badge

![Health badge](/badges/pogotc-phil/health.svg)

```
[![Health](https://phpackages.com/badges/pogotc-phil/health.svg)](https://phpackages.com/packages/pogotc-phil)
```

###  Alternatives

[elgentos/shopware-seo-canonical-url

Use parent product canonical URL for SEO

183.4k](/packages/elgentos-shopware-seo-canonical-url)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
