Download the PHP package laraxgram/laraquest without Composer

On this page you can find all versions of the php package laraxgram/laraquest. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laraquest

Laraquest

Sending requests and receiving Telegram updates.

Other Versions

Installation:


Config:


Usage:

Methods:

Just use trait Method in your class!


Just use trait Updates in your class!

Updates:


Both:

Just use trait Method and Updates in your class!

Long Polling

Responses

Every method gives back a Response, which may be read as the array Telegram sent, as the object the method returns, or through its own helpers - and the method documents all three, so an editor completes whichever you use:

Errors

A call Telegram refuses returns ['ok' => false, ...]. Call throw() to get the exception that matches the failure instead:

Laraquest::throwOnErrors() turns it on for every call, and silent() opts a single call back out. The exceptions are BadRequestException, UnauthorizedException (InvalidTokenException), ForbiddenException (BotBlockedException, BotKickedException, UserDeactivatedException, NotEnoughRightsException), NotFoundException, ConflictException, RequestEntityTooLargeException, FloodException, InternalServerErrorException, ConnectionException, and the ones for the everyday mistakes: ChatNotFoundException, UserNotFoundException, MessageNotFoundException, MessageNotModifiedException, ChatMigratedException (migrateToChatId()) and InvalidFileException.

Update Objects

Every Bot API type has a class with one init() parameter per field, so a payload can be built without remembering a single key:

The same classes read what Telegram sent, turning nested payloads into objects:

$bot->update() returns the same object for the incoming update.

Multi Connection


All versions of laraquest with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-curl Version *
ext-dom Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package laraxgram/laraquest contains the following files

Loading the files please wait ...