PHPackages                             memogram/panelkit - 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. [Admin Panels](/categories/admin)
4. /
5. memogram/panelkit

ActiveLibrary[Admin Panels](/categories/admin)

memogram/panelkit
=================

Panel kit for memogram

04PHP

Since Nov 8Pushed 6mo agoCompare

[ Source](https://github.com/MahdiSaremi/memogram-panelkit)[ Packagist](https://packagist.org/packages/memogram/panelkit)[ RSS](/packages/memogram-panelkit/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Panel Kit
=========

[](#panel-kit)

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

[](#installation)

```
composer require memogram/panelkit
```

### Publish

[](#publish)

Optionally, you can publish the assets:

```
php artisan vendor:publish --tag="panelkit:config"
php artisan vendor:publish --tag="panelkit:lang"
```

Broadcast
---------

[](#broadcast)

Broadcast is a service to notify the users by a message

### Ready To Use

[](#ready-to-use)

Add these lines to show global sending method actions:

```
return messageResponse()
    ->schema([
        [
            key("Forward", fn () => open([BroadcastForm::class, 'forwardForm'])),
            key("Message", fn () => open([BroadcastForm::class, 'messageForm'])),
        ]
    ]);
```

### Fast Use

[](#fast-use)

Send to all users a message:

```
Broadcast::toAll()
    ->message(['text' => 'Hello Everyone!'])
    ->log(update()->getChatId())
    ->notify();
```

### Logger

[](#logger)

Logger logging the notifier status

Available builtin loggers:

```
new PvBroadcastLogger(CHAT_ID)
```

Creating customize classes:

```
class CustomLogger implements BroadcastLogger
{

    public function created(BroadcastJob $job) : void
    {
        // ...
    }

    public function log(BroadcastJob $job) : void
    {
        // ...
    }

    public function error(BroadcastJob $job, \Throwable $exception) : void
    {
        // ...
    }

    public function completed(BroadcastJob $job) : void
    {
        // ...
    }

}
```

Usage:

```
Broadcast::toAll()
    ->send(['text' => 'Foo'])
    ->logger(new CustomLogger())
    ->notify();
```

Lock
----

[](#lock)

Lock system used to protect contents by favorite lock methods like forcing channel joining

### Ready To Use

[](#ready-to-use-1)

Middleware:

```
withGlobalMiddleware(new LockMiddleware());
```

Use the section:

```
return messageResponse()
    ->schema([
        [key("🔒 Locks", [LockResourceSection::class, 'main'])], // todo
    ]);
```

### Fast Use

[](#fast-use-1)

Works with locks:

```
$lock = Lock::push(...);  // To add a new lock
$lock->delete(); // To delete the lock
```

Using `useLock` hook:

```
public function lockedContent()
{
    $lock = app(LockRequest::class)->useLock();

    yield from $lock();

    yield "Actual content";
}
```

### Fixed Channels

[](#fixed-channels)

Change the config:

```
    'lock' => [
        'fixed' => [
            [
                'chat_id' => -123455678,
                'title' => 'Join',
                'url' => 'https://t.me/Link',
                'group' => 'main',
            ],
        ],
    ],
```

### Lock Condition

[](#lock-condition)

```
class UserIsOddCondition implements LockCondition
{
    public function show(): bool
    {
        return User::$current->id % 2 == 1;
    }
}
```

Set globally condition in config:

```
    'lock' => [
        'condition' => UserIsOddCondition::class,
    ],
```

Targets
-------

[](#targets)

Targets is a collection of tools to customize the actions

### Aim

[](#aim)

Aim set the target query and records

Available builtin aims:

```
new TgAllAim()
new TgCustomAim(new SerializableClosure(function () {...}))
```

Creating customize classes:

```
class TgNotBannedAim implements TgAim
{
    public function getQuery() : Builder
    {
        return BotUser::whereIsNull('ban_until')->orderBy('created_at');
    }
}
```

> We trust on `orderBy('created_at')` to sort the records by a stable order to prevent double sending or not sending to some users.

Usage:

```
Broadcast::make()
    ->aim(new TgNotBannedAim())
    ->send(['text' => 'Hi'])
    ->notify();
```

### Notifier

[](#notifier)

Notifier set the sending method

Available builtin notifiers:

```
new TgMessageNotifier()
new TgForwardNotifier()
new TgCustomNotifier(new SerializableClosure(function () {...}))
```

Creating customize classes:

```
class TgHomeSectionNotifier implements TgNotifier
{
    public function notify(Model $record): bool
    {
        evnetHandler()-> // todo
        return (bool) pov()
            ->user($record)
            ->catch()
            ->run(
                fn () => HomeSection::invokes('main')
            );
    }
}
```

Usage:

```
Broadcast::toAll()
    ->notifier(new TgHomeSectionNotifier())
    ->notify();
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance47

Moderate activity, may be stable

Popularity3

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://www.gravatar.com/avatar/bbaf96477392e1adb53c957488c07eb48bdf9b2d75641b237a6d1becea4bc472?d=identicon)[MahdiSaremi](/maintainers/MahdiSaremi)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[jeroennoten/laravel-adminlte

Easy AdminLTE integration with Laravel

4.0k4.8M43](/packages/jeroennoten-laravel-adminlte)[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[dwij/laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like CRUD Generation, Module Manager, Media, Menus, Backups and much more

1.6k68.7k](/packages/dwij-laraadmin)[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1764.8M125](/packages/filament-spatie-laravel-media-library-plugin)[bezhansalleh/filament-exceptions

A Simple &amp; Beautiful Pluggable Exception Viewer for FilamentPHP's Admin Panel

193195.9k13](/packages/bezhansalleh-filament-exceptions)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1220.8M36](/packages/filament-infolists)

PHPackages © 2026

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