Download the PHP package violetsun/max without Composer
On this page you can find all versions of the php package violetsun/max. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download violetsun/max
More information about violetsun/max
Files in violetsun/max
Package max
Short Description MAX Messenger SDK Bot API PHP
License MIT
Homepage https://github.com/violetsun/max
Informations about the package max
MAX
Functionality
violetsun/max is a Laravel package for integration with the official MAX API.
The package provides a convenient way to work with MAX bots and chats directly from a Laravel application: sending messages, uploading files, working with attachments, handling chats and users, and using a fluent message builder.
Main features
- Integration with the official MAX API.
- Laravel facade for simple API calls.
- Sending text messages to chats and users.
- Editing and deleting messages.
- Fluent
MessageBuilderfor building complex messages. - Support for message attachments:
- images;
- videos;
- audio;
- files;
- stickers;
- contacts;
- locations;
- shared links;
- inline keyboards.
- Uploading local files to MAX and using returned upload tokens.
- Inline keyboard builder with support for:
- callback buttons;
- link buttons;
- geolocation request buttons;
- contact request buttons;
- open app buttons;
- message buttons;
- clipboard buttons.
- Eloquent models for storing MAX users and chats.
- Many-to-many relation between MAX chats and MAX users.
- Optional saving of update data in the application database.
- Optional queue support for processing updates.
- Publishable config, migrations, models, assets and services.
Laravel integration
The package registers a Laravel service provider and exposes the MAX API client through the MAX facade:
Installation
Installing root certificates for working with the MAX API2
- Download root certificates https://www.gosuslugi.ru/crt
- Install certificates
- Update the certificate store
Via Composer
Package vendor publish
or
Migrations (after vendor publish)
.env
Usage
Send message
Send message with MessageBuilder
Send message with Queue
or in routes/console.php
After this, the Laravel scheduler should be started:
For production, it is usually run via cron every minute:
Change log
Please see the changelog for more information on what has changed recently.
Testing
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- demettriss
- All Contributors
License
license file
All versions of max with dependencies
ext-json Version *
illuminate/database Version 9 - 13
illuminate/support Version 9 - 13
guzzlehttp/guzzle Version ^7.5.1
guzzlehttp/psr7 Version ^2.5
league/event Version ^2.2 || ^3.0
psr/container Version ^1.1 || ^2.0
psr/event-dispatcher Version ^1.0