PHPackages                             jes490/dparser - 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. jes490/dparser

ActiveLibrary

jes490/dparser
==============

Simple Dice Roller for Laravel 5.5

v1.0(8y ago)048MITPHP

Since Nov 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jes490/DParser)[ Packagist](https://packagist.org/packages/jes490/dparser)[ RSS](/packages/jes490-dparser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

DParser
=======

[](#dparser)

Simple Dice Roller + Calculator for Laravel 5.5

Installation
------------

[](#installation)

Simple require package in composer

```
composer require jes490/dparser

```

DParser uses Laravel 5.5 Package Auto-Discovery, so you don't have to add ServiceProvider to providers array.

#### Without Auto-Discovery

[](#without-auto-discovery)

If you don't use Package Auto-Discovery, simply add next provider to providers array in config/app.php:

```
Jes490\DParser\DParserServiceProvider::class,

```

And if you want use Facade, add this to your aliases array in config/app.php:

```
'DParser' => Jes490\DParser\Facade\DParser::class,

```

Usage
-----

[](#usage)

You can now use DParser as Facade in your app.

```
DParser::roll($expression);

//You can assess result of your expression like this:
DParser::roll($expression)->getResult();
//Or just use plain auto-conversion __toString()
DParser::roll('2+2'); //returns '4';

//You can access individual rolls like this:
DParser::roll('2d6')->getRolls(); //returns array of rolls results
```

Functionallity
--------------

[](#functionallity)

Currently DParser supports next list of operators: '-', '+', '\*', '/', 'd'. You can build complex expression like these:

```
DParser::roll('2d6+1d8+1d12+20');
DParser::roll('2+3*2-1+2d6-3*4');
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Unknown

Total

1

Last Release

3100d ago

### Community

Maintainers

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

---

Top Contributors

[![jes490](https://avatars.githubusercontent.com/u/17348850?v=4)](https://github.com/jes490 "jes490 (12 commits)")

### Embed Badge

![Health badge](/badges/jes490-dparser/health.svg)

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

PHPackages © 2026

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