PHPackages                             rakeshthapac/laratime - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. rakeshthapac/laratime

ActiveLibrary[HTTP &amp; Networking](/categories/http)

rakeshthapac/laratime
=====================

Cool laravel package to broadcast database updates using websockets for realtime system

v1.0.0(5y ago)3159MITPHP

Since Aug 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Rakesh717/laratime)[ Packagist](https://packagist.org/packages/rakeshthapac/laratime)[ RSS](/packages/rakeshthapac-laratime/feed)WikiDiscussions master Synced 3w ago

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

LaraTime
========

[](#laratime)

Provides a cool way to make your system realtime by sending real-time database updates using WebSockets

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

[](#installation)

- Setup websocket in your application ([Pusher](https://pusher.com/), [Laravel-Websockets](https://beyondco.de/docs/laravel-websockets/getting-started/installation))
- Require this package in your project

```
$ composer require rakeshthapac/laratime
```

- Now install small npm package [laratime-js](https://www.npmjs.com/package/laratime-js)

```
$ npm install laratime-js
```

Usage
-----

[](#usage)

- Just plug one trait into your model and you are ready to go

```
use \rakeshthapac\LaraTime\Traits\LaraTimeable;
// now all your database updates will be broadcasted through websockets
```

Usage (Frontend [laratime-js](https://www.npmjs.com/package/laratime-js))
-------------------------------------------------------------------------

[](#usage-frontend-laratime-js)

- import laratime from laratime-js and pass it the Echo instance

```
// in bootstrap.js
// first create a instance of a echo with correct credentials
import LaraTime from "laratime-js";
window.laratime = new LaraTime(window.Echo);
```

- Now you are ready to listen for database changes

```
window.laratime
  .db("users")
  .on("added", (user) => addUser(user))
  .on("updated", (user) => updateUser(user))
  .on("deleted", (user) => deletesUser(user));
```

- Using laratime-js you can listen to updates of a table using **db(tableName)** and by chaining **on(eventName)** you can listen to three different events:
    - added
    - updated
    - deleted
- You can hook a callaback which accepts the added (or updated or deleted) model as the first argument as javascript object.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Unknown

Total

1

Last Release

2152d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/10c9e636d79873f3b3fc6c0365e2bbac4afcb92dff011ed75532ce183dbf7dc5?d=identicon)[rakeshthapac](/maintainers/rakeshthapac)

---

Top Contributors

[![Rakesh717](https://avatars.githubusercontent.com/u/50888838?v=4)](https://github.com/Rakesh717 "Rakesh717 (10 commits)")

---

Tags

laravelrealtimewebsocket

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rakeshthapac-laratime/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M92](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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