PHPackages                             ceus-media/php-parser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. ceus-media/php-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

ceus-media/php-parser
=====================

PHP parser written in PHP

0.5.0(1y ago)05553GPL-3.0-or-laterPHPPHP ^8.3CI failing

Since Oct 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/CeusMedia/PHP-Parser)[ Packagist](https://packagist.org/packages/ceus-media/php-parser)[ RSS](/packages/ceus-media-php-parser/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (8)Dependencies (6)Versions (12)Used By (3)

PHP-Parser
==========

[](#php-parser)

[![Branch](https://camo.githubusercontent.com/083d5e3480423bbf3beb795ac51c6c9e68156bfb3d68ffd46641cb856b9a3f2b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4272616e63682d302e342e782d626c75653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/083d5e3480423bbf3beb795ac51c6c9e68156bfb3d68ffd46641cb856b9a3f2b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4272616e63682d302e342e782d626c75653f7374796c653d666c61742d737175617265)[![Release](https://camo.githubusercontent.com/026ddd65ab1aadbe025c4c30b2833e44118d119bd1a28e5a5bbc5c3098a1a2be/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52656c656173652d302e342e302d626c75653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/026ddd65ab1aadbe025c4c30b2833e44118d119bd1a28e5a5bbc5c3098a1a2be/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52656c656173652d302e342e302d626c75653f7374796c653d666c61742d737175617265)[![PHP version](https://camo.githubusercontent.com/7ebb0279547d526a54d318d9ab47d214fc6a36936050d77b00e120c3ce9db3f1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e312d626c75653f7374796c653d666c61742d73717561726526636f6c6f723d373737424234)](https://camo.githubusercontent.com/7ebb0279547d526a54d318d9ab47d214fc6a36936050d77b00e120c3ce9db3f1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e312d626c75653f7374796c653d666c61742d73717561726526636f6c6f723d373737424234)[![PHPStan level](https://camo.githubusercontent.com/9445d19bb9f5efa455804f3c27b30793eb28f2089e9e51d3f63a1e3898a6b8f0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e5f6c6576656c2d362d6461726b677265656e3f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/9445d19bb9f5efa455804f3c27b30793eb28f2089e9e51d3f63a1e3898a6b8f0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e5f6c6576656c2d362d6461726b677265656e3f7374796c653d666c61742d737175617265)[![License](https://camo.githubusercontent.com/70da77c262420b91880d46a82b4677f748416b18bbd4e6802e1e53f3c9540200/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636575732d6d656469612f7068702d7061727365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ceus-media/php-parser)

PHP parser (and renderer) written in PHP

- collection of Classes for PHP language concepts, like:
    - variables and class members
    - functions and class methods
    - parameters of functions and methods
    - return types of functions and methods
    - accessibility of variables, members and methods
    - abstraction of classes and methods
    - class attributes like final, extends, implements
    - plus a file which holds variables, functions and classes
- a parser to read PHP
    - as string or file into a tree structure
- a renderer to build PHP
    - from a defined or parsed tree structure

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance45

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~164 days

Recently: every ~134 days

Total

11

Last Release

396d ago

PHP version history (3 changes)0.3.1PHP ^7.4 | ^8.1

0.4.0PHP ^8.1

0.5.0PHP ^8.3

### Community

Maintainers

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

---

Top Contributors

[![kriss0r](https://avatars.githubusercontent.com/u/476914?v=4)](https://github.com/kriss0r "kriss0r (68 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ceus-media-php-parser/health.svg)

```
[![Health](https://phpackages.com/badges/ceus-media-php-parser/health.svg)](https://phpackages.com/packages/ceus-media-php-parser)
```

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M170](/packages/hassankhan-config)[meyfa/php-svg

Read, edit, write, and render SVG files with PHP

54613.9M42](/packages/meyfa-php-svg)

PHPackages © 2026

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