PHPackages                             tasoft/php-string-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. tasoft/php-string-parser

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

tasoft/php-string-parser
========================

v0.9.8(3y ago)02293MITPHPPHP ^7|^8CI failing

Since Apr 23Pushed 3y agoCompare

[ Source](https://github.com/tasoftch/php-string-parser)[ Packagist](https://packagist.org/packages/tasoft/php-string-parser)[ RSS](/packages/tasoft-php-string-parser/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (3)

PHP String Parser
=================

[](#php-string-parser)

My php string parser library provides an abstract mechanism to tokenize, parse and until compile any kind of scripts you want.
There are some implemented parsers ready to use for expressions.

```
$parser = new SimpleTokenParser();
print_r($parser->parseString("12 + 13 / 6"));
```

This list all parsed tokens.
Token parsing is done by php token\_get\_all function, but you can easy subclass a tokenizer to customize string tokenizing.

Install
-------

[](#install)

PHP String Parser is a composer package. So you can simply install it by

```
$ composer require tasoft/php-string-parser

```

Now the library is available under namespace \\TASoft\\Parser...

### Examples

[](#examples)

The package tasoft/predicate uses this parser to create predicates from string.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 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 ~1020 days

Total

2

Last Release

1239d ago

PHP version history (2 changes)v0.9.5PHP ^7.2

v0.9.8PHP ^7|^8

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3583741?v=4)[tasoft](/maintainers/tasoft)[@TASoft](https://github.com/TASoft)

---

Top Contributors

[![tasoftch](https://avatars.githubusercontent.com/u/24875322?v=4)](https://github.com/tasoftch "tasoftch (35 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tasoft-php-string-parser/health.svg)

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

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19037.7M42](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9642.0k](/packages/sauladam-shipment-tracker)[moonshine/layouts-field

Field for repeating groups of fields for MoonShine

107.9k](/packages/moonshine-layouts-field)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

112.9k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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