installing package:
composer require phpevo/phpevoload Evolution class:
$phpevo = (new PHPEvo($apiKey, $apiBaseUrl))->instance;
$phpevo->setName('phpevo');/**
* @return array with key qrcode with base64 image
*/
$phpevo->create();/**
* @return array with all instances
*/
$phpevo->getAll();/**
* @return array with key qrcode with base64 image
*/
$phpevo->connect();/**
* @return array with state key
*/
$phpevo->getState();/**
* @return bool
*/
$phpevo->disconnect();/**
* @return bool
*/
$phpevo->destroy();$phpevo = (new PHPEvo($apiKey, $apiBaseUrl))->send;
$phpevo
->instance($instance)
->to($phone);/**
* @return array
*/
$phpevo->text($message, $params);/**
* @return array
*/
$phpevo->sendImage($imagePath);
/**
* @return array
*/
$phpevo->sendAudio($audioPath);
/**
* @return array
*/
$phpevo->sendDocument($documentPath);
/**
* @return array
*/
$phpevo->sendVideo($videoPath);
/**
* @return array
*/
$phpevo->sendContact(new ContactMessage($phone, $nonStylizedPhone), $options);
/**
* @return array
*/
$phpevo->sendLocation(new LocationMessage($lat, $long, $address), $options);
/**
* @return array
*/
$phpevo->sendReaction(new ReactionMessage($key, '🧬'));
/**
* @return array
*/
$phpevo->sendPoll(new PollMessage($title, $selectableCount, $values), $options);$phpevo = (new PHPEvo($apiKey, $apiBaseUrl))->websocket;
$phpevo->instance($instance);/**
* @param bool $enabled
* @param array $events (See [all valid events](./src/Services/Enums/ValidEvents.php))
* @return array
*/
$phpevo->set($enabled, $events);/**
* @return array
*/
$phpevo->find();$phpevo = (new PHPEvo($apiKey, $apiBaseUrl))->sqs;
$phpevo->instance($instance);/**
* @param bool $enabled
* @param array $events (See [all valid events](./src/Services/Enums/ValidEvents.php))
* @return array
*/
$phpevo->set($enabled, $events);/**
* @return array
*/
$phpevo->find();$phpevo = (new PHPEvo($apiKey, $apiBaseUrl))->rabbit;
$phpevo->instance($instance);/**
* @param bool $enabled
* @param array $events (See [all valid events](./src/Services/Enums/ValidEvents.php))
* @return array
*/
$phpevo->set($enabled, $events);/**
* @return array
*/
$phpevo->find();- ✅ Create Instance
- ✅ Fetch Instances
- ✅ Instance Connect
- ✅ Connection State
- ✅ Logout Instance
- ✅ Delete Instance
- Restart Instance
- Set Presence
- ✅ Send plain text
- ✅ Send image
- ✅ Send document
- ✅ Send audio
- ✅ Send video
- ✅ Send reaction
- ✅ Send Location
- ✅ Send Contact
- ✅ Send Poll
- check status
- Send List
- Send Buttons
Contribuições são muito bem-vindas! Para começar:
- Faça um fork do projeto.
- Crie uma branch para sua feature (git checkout -b feature/new-feature).
- Faça commit das alterações (git commit -m 'feat: added a new feature').
- Envie sua branch (git push origin feature/new-feature).
- Abra um pull request para análise.
Este projeto está licenciado sob a MIT License. Consulte o arquivo LICENSE para mais detalhes.
💻 GitHub: mariolucasdev
📧 Email: mariolucasdev@gmail.com