PHPackages                             marwanlotfy/blink - 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. [API Development](/categories/api)
4. /
5. marwanlotfy/blink

ActiveLibrary[API Development](/categories/api)

marwanlotfy/blink
=================

Blink, An API chat package integrate with your laravel application

113PHP

Since Oct 28Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Blink , Chat Package
====================

[](#blink--chat-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d654b6e2ee4dcc3d3747782ea509fe680267471ea9b37814aa763b467adc167c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617277616e6c6f7466792f626c696e6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marwanlotfy/blink)[![Quality Score](https://camo.githubusercontent.com/0c8b78cbcf416f4c1f31e31e2c74c04d230481e8945497a0ada63789d7651d37/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6d617277616e6c6f7466792f626c696e6b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/marwanlotfy/blink)[![Total Downloads](https://camo.githubusercontent.com/e8bad8657cf3f4530ffc9a9b7e9aa762b2ab4c6e7a6ba10824b1ea075dc3d2ea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617277616e6c6f7466792f626c696e6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marwanlotfy/blink)

Hii , Blink is a chat package integerate with laravel

it's easy to install , provides you with apis for chats,messages,message informations and support messages of type (text , images , voice , location and video )

Features
--------

[](#features)

- Restful APIs for Chat (create , list)
- Restful APIs for Message (create , list , get sended media)
- Supported Message Types (Audio , Video , Images , Text , Location )
- Restful APIs for Message Info ( list , seen , deliverd )

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

[](#installation)

You can install the package via composer:

```
composer require marwanlotfy/blink
```

Usage
-----

[](#usage)

```
php artisan migrate
```

You need to publish config file and override the defaults options

```
php artisan vendor:publish --tag=blink-config
```

try

```
php artisan route:list
```

it will list chat routes for you

Route Samples [![Blink APIs](https://github.com/marwanlotfy/Blink/raw/master/ChatAPIs.png)](https://github.com/marwanlotfy/Blink/blob/master/ChatAPIs.png)

if you need your users hasChats you can use HasChats Trait

```
use Blink\HasChats;
```

on your UserModel

and add

```
use HasChats;
```

inside User class

properties Added are

```
$user->chats;
$user->unBannedChats;
$user->bannedChats;
```

methodes Added are

```
$user->leaveChat($chatId);
```

you can use Blink Facade

```
use Blink\Facades\Blink;

Blink::createChat(...$usersIds);
Blink::getChat($chatId)->delete();
Blink::getChat($chatId)->createTextMessage(String $body);
Blink::getChat($chatId)->unSuspend();
Blink::getChat($chatId)->suspend();
Blink::getChat($chatId)->banUsers(...$users);
Blink::getChat($chatId)->unBanUsers(...$users);
Blink::getChat($chatId)->markAsGroup($creatorId,$groupName,$description,$icon)->makeGroupAdmin(...$users);
```

You can keep adding admins to chat if is marked as Group

when you create chat there is an event will be fired

```
Blink\Events\NewChatCreated
```

so you can listen on this event and handle the logic you want to notify your users

the event has $chat property

when you send chat Message there is an event will be fired

```
Blink\Events\NewChatMessage
```

so you can listen on this event and handle the logic you want to notify your users that new message created

the event has $message property

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Marwan Lotfy](https://github.com/marwanlotfy)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

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/6f28c9f9c6ec3ffaa318b176d45d9363a8808ac8289b742a054e22d3f287c0e2?d=identicon)[Marwan Lotfy](/maintainers/Marwan%20Lotfy)

### Embed Badge

![Health badge](/badges/marwanlotfy-blink/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

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