PHPackages                             endel/galapagos - 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. endel/galapagos

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

endel/galapagos
===============

10508PHP

Since Mar 7Pushed 11y ago3 watchersCompare

[ Source](https://github.com/endel/galapagos)[ Packagist](https://packagist.org/packages/endel/galapagos)[ RSS](/packages/endel-galapagos/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Galapagos
=========

[](#galapagos)

Evolutionary language transformation. Fork of [igorw](https://github.com/igorw)'s initial work.

Read the related [blog post](https://igor.io/2013/07/26/evolving-syntax.html).

Backport existing PHP features to previous versions through AST compilation. Inspired by lisp macros. Using the incredible [nikic/PHP-Parser](https://github.com/nikic/PHP-Parser).

Missing features
----------------

[](#missing-features)

### 5.4

[](#54)

- Binary number format
- Closure rebinding

Edge cases:

- Calling private methods from within closure
- Ensure `$that` gets passed to nested closures

### State

[](#state)

There needs to be a strategy for managing state. A trait transformer needs to keep track of the traits it found. That is currently missing.

### Preservation

[](#preservation)

There should be a way to preserve existing code formatting, especially for code that wasn't actually modified. Instead of pretty-printing everything, only changed parts of the AST should be changed in source. Three-way-diff may help with this.

### Line numbers

[](#line-numbers)

Is there any way to do something like source maps to refer to the original line numbers, so that code remains at all debuggable?

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.3% 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/9be4eac04f2b81f8077124dfbf653488512557fa5193e6d57c473d7ec9b25fd6?d=identicon)[endel](/maintainers/endel)

---

Top Contributors

[![igorw](https://avatars.githubusercontent.com/u/88061?v=4)](https://github.com/igorw "igorw (21 commits)")[![endel](https://avatars.githubusercontent.com/u/130494?v=4)](https://github.com/endel "endel (13 commits)")[![camspiers](https://avatars.githubusercontent.com/u/51294?v=4)](https://github.com/camspiers "camspiers (3 commits)")[![cordoval](https://avatars.githubusercontent.com/u/328359?v=4)](https://github.com/cordoval "cordoval (1 commits)")

### Embed Badge

![Health badge](/badges/endel-galapagos/health.svg)

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

###  Alternatives

[onmotion/yii2-widget-apexcharts

Yii2 charts widget - wrapper for the ApexCharts.js

1960.8k1](/packages/onmotion-yii2-widget-apexcharts)

PHPackages © 2026

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