Download the PHP package crt0/evolution-sdk without Composer

On this page you can find all versions of the php package crt0/evolution-sdk. 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 evolution-sdk

evolution-sdk

Minimal SDK to Evolution API | PHP

SDK Usage Documentation

This document provides a simple guide on how to use the EvolutionSDK PHP SDK to interact with the Evolution API.

Installation

To use the EvolutionSDK, you need to include it in your PHP project. You can do this via Composer:

bash
composer require evolution-sdk/sdk

Initialization

First, you need to initialize the SDK by providing the required configurations.

php
<?php use EvolutionSDK\SDK; use EvolutionSDK\util\Config; // Include Composer's autoloader require_once 'vendor/autoload.php'; // Initialize SDK with configuration $config = new Config('YOUR_API_KEY', 'https://api.example.com'); $sdk = new SDK($config);

Creating an Instance

You can create a new instance using the create method.

php
$instanceName = 'example_instance'; $qrcode = true; // Optional $response = $sdk->create($instanceName, $qrcode); print_r($response);

Sending a Message

Send a message to a specific number on WhatsApp.

php
$instance = 'example_instance'; $number = '551234567890'; // WhatsApp number $message = 'Hello, this is a test message.'; $options = []; // Optional $response = $sdk->sendMessage($instance, $number, $message, $options); print_r($response);

Connecting to Instance

Connect to a specific instance by generating a QR code.

php
$instance = 'example_instance'; $response = $sdk->connect($instance); print_r($response);

Checking Instance Status

Check the status of a specific instance.

php
$instance = 'example_instance'; $response = $sdk->instanceStatus($instance); print_r($response);

Error Handling

In case of errors, exceptions will be thrown. You can catch them using standard PHP try-catch blocks.

php
try { // Perform SDK operations } catch (Exception $e) { echo 'Error: ' . $e->getMessage(); }

Note

Replace 'YOUR_API_KEY' and 'https://api.example.com' with your actual API key and API base URL respectively.

This documentation covers basic usage of the EvolutionSDK PHP SDK. For more advanced usage and detailed information, refer to the EvolutionSDK documentation or source code.


All versions of evolution-sdk with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle 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 crt0/evolution-sdk contains the following files

Loading the files please wait ....