Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Max Bot Api Client Php

Max Bot Api Client Php Laravel Package

bushlanov-dev/max-bot-api-client-php

bushlanov-dev/max-bot-api-client-php is a Composer-ready PHP client for the MAX Bot API, making it easy to build bots for the MAX messenger. It offers convenient methods for messages, media, keyboards, updates, and webhooks, with a clean, framework-agnostic design.

View on GitHub
Deep Wiki
Context7

🤖💬 Max Bot API Client library for PHP

Frequently asked questions about Max Bot Api Client Php
How do I install bushlanov-dev/max-bot-api-client-php in a Laravel project?
Run composer require bushlanov-dev/max-bot-api-client-php and pin an exact version, committing the lock file rather than floating on ^1.0. Check the declared PHP and PSR constraints on Packagist first, since the most likely install-time conflict is a Guzzle or PSR-7 major mismatch with what Laravel already pulls in. Test the install in CI on your real PHP matrix rather than in isolation, and do a standalone script that sends one message before touching application code.
Is bushlanov-dev/max-bot-api-client-php a Laravel package with a service provider and facade?
No. It is a framework-agnostic PHP SDK that wraps the MAX messenger Bot API, so expect no service provider, no publishable config file and no facade. In a Laravel codebase it belongs as an outbound adapter inside your messaging or notifications bounded context, not as infrastructure glue. You write the provider, config file, webhook controller and queue wiring yourself.
Which PHP and Laravel versions does this MAX Bot API client support?
The package is unlikely to declare any illuminate/* constraints, which is a plus because it means no native Laravel version coupling. What actually matters is the PHP constraint matching your runtime, so verify it on Packagist before installing on Laravel 10, 11 or 12. Confirm the supported PSR-18 and PSR-7 versions too, since those determine how cleanly it slots into Laravel's existing HTTP stack.
How do I bind the MAX Bot API client as a singleton in Laravel?
Create a small MaxBotServiceProvider that binds the client as a singleton, publish a config/max-bot.php file, and read the bot token from config so SDK call sites never touch env(). Inject the client through the constructor of the one adapter class that uses it. Keep that adapter behind your own in-app MessagingChannel interface so no controller, job or listener imports an SDK class directly and the vendor stays swappable.
How do I receive MAX Bot webhooks in a Laravel controller?
Add a route that validates the secret or signature, returns a 200 response as fast as possible, and pushes the payload onto a queued job. Enforce idempotency on the update ID in a store so retried deliveries do not double-process. Verify the exact signature and secret validation scheme against the SDK and the MAX Bot API docs before exposing the endpoint publicly, and exclude the route from CSRF protection.
Does the client support long polling as an alternative to webhooks?
The MAX Bot API is conceptually Telegram-shaped, so both update delivery styles may exist, but long-poll support in this specific SDK is not confirmed by the package metadata. Check the source and examples before designing around it. Webhooks behind a Laravel controller are generally the better fit for a queue-driven application anyway, with polling reserved for local development.
How do I send messages, media and inline keyboards with this client?
The library advertises convenient methods for messages, media, keyboards, updates and webhooks, so a basic send-message call is a few lines after you construct the client with your token. Whether updates and payloads come back as typed DTOs or raw arrays is unverified, so inspect the return types early. For file and media uploads, confirm multipart support exists rather than assuming it, and measure latency and error shapes in your spike.
Does the package handle retries, 429 rate limits and timeouts?
Built-in retry, backoff and timeout configurability are not documented, so assume you own them. Wrap calls in your own retry middleware or a queued job with backoff, and check whether the HTTP abstraction is PSR-18/PSR-17 or a hard Guzzle dependency. Either way, set explicit timeouts, honour 429 responses, and log every outbound failure with structured context.
How do I test MAX bot code without calling the live API?
Fake the HTTP layer instead of the network: if the SDK sits on PSR-18, inject a mock client in tests; if it hard-depends on Guzzle, mock the client class or use Guzzle's handler stack. Assert on the request your adapter builds and on how your code handles error responses. Keep live calls out of CI entirely and let one manually triggered spike script cover real connectivity.
Is this package safe for production, and what are the maintenance and compliance risks?
Treat it as unmaintained until proven otherwise: single author, roughly 51 stars, zero dependents, no downstream bug reports and no ecosystem pressure on API stability, so budget about half a day per quarter to review releases. Pin exact versions because the young MAX Bot API is still moving and semver discipline is unproven. The likely real blocker is geo and compliance rather than code, since outbound traffic to Russian-hosted endpoints raises data residency, GDPR and DPA, vendor-risk and possibly sanctions-screening questions. If risk tolerance is low, fork the SDK or wrap it behind an interface so you can swap in a first-party implementation later.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo