Overview of LaraGram Logging Channels
v3stack channel to aggregate multiple log channels into one.website·Indexed 30 days ago
https://laraxgram.github.ioA PHP framework featuring an object-relational mapper (Eloquent), a service container for dependency injection, and specialized tools for Telegram integration. Includes MTProto for chat and media handling, Luna for building single-page frontends and Telegram Mini Apps (TMA), and a comprehensive suite of core utilities for HTTP requests, queuing, task scheduling, and filesystem abstraction.
stack channel to aggregate multiple log channels into one..t8.php file extension and are typically stored in the app/templates directory. They can be returned from listeners or controllers using the global template helper, which accepts the template name and an optional array of data.Bot::onText('hi', function () {
return template('greeting', ['name' => 'Finn']);
});Luna is an official adapter for LaraGram that allows developers to build modern, single-page style frontends using React, Vue, or Svelte. It eliminates the need for a separate API or client-side routing configuration by keeping application logic (routing, controllers, middleware, validation, and authorization) on the server.
Luna consists of two parts:
laraxgram/luna) that handles responses.@laraxgram/luna) and framework-specific adapters (@laraxgram/react, @laraxgram/vue3, or @laraxgram/svelte).It is primarily used for two scenarios:
telegram auth guard, reactive theme/viewport stores, and wrappers for the Telegram WebApp SDK.get method or relationship accessors) return instances of LaraGram\Database\Eloquent\Collection. This class extends the base LaraGram collection, inheriting its fluent map/reduce operations and iterator capabilities, allowing collections to be looped over like standard PHP arrays.use App\Models\User;
$users = User::where('active', 1)->get();
foreach ($users as $user) {
echo $user->name;
}.blade.php extension and are typically stored in the resources/views directory. They can be returned from routes or controllers using the global view helper.Route::get('/', function () {
return view('greeting', ['name' => 'Finn']);
});@laraxgram/luna with a telegram* prefix. These helpers wrap the native Telegram WebApp SDK, allowing developers to await platform features without manually checking for window.Telegram. They are safe to call outside of Telegram: fire-and-forget helpers will no-op, and promise-based helpers will resolve to a sensible empty value. Rejections should be handled with .catch() for cases like denied permissions or unsupported platforms.config/queue.php. Supported drivers include database, redis, sync (immediate execution for local development), and null (discards jobs).LaraGram offers three primary starter kits, all powered by Luna, which enables single-page applications (SPAs) and Telegram Mini Apps using server-side routing and Vite compilation.
# Source repository
https://github.com/laraXgram/Tempora