PHPackages                             memogram/framework - 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. [Framework](/categories/framework)
4. /
5. memogram/framework

ActiveLibrary[Framework](/categories/framework)

memogram/framework
==================

Make your bot with Laravel framework

044PHP

Since Nov 7Pushed 7mo agoCompare

[ Source](https://github.com/MahdiSaremi/memogram)[ Packagist](https://packagist.org/packages/memogram/framework)[ RSS](/packages/memogram-framework/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Memo Gram
=========

[](#memo-gram)

Page &amp; Response
===================

[](#page--response)

```
class Container
{
    public function myPage()
    {
        return "Hello World!";
    }
}
```

```
class SomethingElse
{
    public function foo()
    {
        open([Container::class, 'myPage']);
    }
}
```

Message response:

```
public function myPage()
{
    return messageResponse("Hello world!")
        ->schema([
            [key("Hi")->then(fn() => "Hi too!")]
        ]);
}
```

Glass message response:

```
public function myPage()
{
    return glassMessageResponse("Hello world!")
        ->schema([
            [glassKey("Hi")->then(fn() => "Hi too!")]
        ]);
}
```

Delete message:

```
public function myPage()
{
    return deleteResponse('main');
}
```

Listeners:

```
public function myPage()
{
    onAny(function () {
        return "Hello world";
    });
    onMessage("Bar")->then(function () {
        return "Baz";
    });

    return "Something...";
}
```

Validations:

```
Validation::make(['update', 'message', 'text', 'max:255'])->validate();
```

Extra
-----

[](#extra)

Trap Join

routes/bot.php:

```
onCommand('/start {inviter}', function ($inviter) {
    open([StartSection::class, 'start'], ['inviter' => $inviter]);
});
```

StartSection.php:

```
class StartSection
{
    public function start()
    {
        $inviter = useParam('inviter');

        if (mounting()) {
            if ($this->joined()) {
                $this->giveInviteCoin($inviter);
                open([HomeSection::class, 'main']);
                return;
            }
        };

        onAny(function () {
            return "You should join the channels first.";
        })->atFirst();

        return messageResponse("First join the channels.")
            ->schema([
                [key("Check")->atFirst()->then(function {
                    if ($this->joined()) {
                        $this->giveInviteCoin($inviter);
                        yield "Good job!";
                        open([HomeSection::class, 'main']);
                    } else {
                        yield "You're not joined yet!";
                    }
                })],
            ])
    }
}
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance43

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/95860107?v=4)[Mahdi Saremi](/maintainers/MahdiSaremi)[@MahdiSaremi](https://github.com/MahdiSaremi)

---

Top Contributors

[![MahdiSaremi](https://avatars.githubusercontent.com/u/95860107?v=4)](https://github.com/MahdiSaremi "MahdiSaremi (53 commits)")

### Embed Badge

![Health badge](/badges/memogram-framework/health.svg)

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M299](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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