Download the PHP package decole/quasar-iot without Composer

On this page you can find all versions of the php package decole/quasar-iot. 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 quasar-iot

Quasar PHP bundle for Alice devices

Install by composer

Requirements:

Client for https://yandex.ru/quasar/iot/

It is bundle for Laravel and just for simple php projects, which will help send text messages to an audio smart devices via external api https://yandex.ru/quasar/iot/. Audio device with voice assistant Alice will be able to say what you sent without your manual voice activation.

100 characters limit per message !

I did it myself for voicing notifications and important notifications.

Optionally, if you use Laravel, you can publish the config file of this package with this command:

How to find cookies

Log in to https://yandex.ru/quasar/iot/

Press F11 in your browser to open "Developer Tools"

In the tab "Network" open any Fetch/XHR request and in the Request Headers copy the line from Cookie:. This Cookie string is needed for this library to work.

An example of the steps to use this library:

  1. You need to add your smart speaker to the devices of your Yandex account. So that your device can be seen in https://yandex.ru/quasar/iot/.
  2. Pull out Cookie of your account and save. This line is needed for the entire service to work. See picture above.
  3. Find the column id. the $service->getDevices() method will give you all your devices (in all houses and rooms)
  4. You need to create a custom script if it doesn't already exist. For example, it could be a scenario named "Голос" $service->createScenario()
  5. Change the spoken text $service->changeTextSpeechByScenario('Всем привет'); - 100 characters limit
  6. Executing a voice message command $service->executeSpeechByScenario();
  7. Deleting a scenario $service->deleteScenario();

QuasarClient methods



Для Россиян и понимающих русский язык:

Установка через composer

Требования:

Клиент (api обертка) для https://yandex.ru/quasar/iot/

Обертка для Laravel, так и просто для проектов на php, которая поможет отправлять текстовые сообщения на аудиоколонку через внешнее api https://yandex.ru/quasar/iot/. Колонка с голосовым помощником Алиса сможет говорить то, что вы отправили без вашей голосовой активации.

Ограничение на 100 символов в сообщении !

Делал себе для озвучивания нотификаций и важных сообщений.

При желании, если вы используете Laravel, вы можете опубликовать файл конфигурации этого пакета с помощью этой команды:

Как найти cookies

Зайти и авторизоваться на https://yandex.ru/quasar/iot/

Нажать на F11 в вашем браузере, чтобы открыть "Инструменты разработчика"

Dо вкладке "Network" открыть любой Fetch/XHR запрос и в Request Headers скопировать строку из Cookie: параметра. Данная строка понадобиться, чтобы работы этой библиотеки.

Пример этапов применения данной библиотеки:

  1. Нужно добавить вашу умную колонку в устройства вашей учетной записи Яндекса. Чтобы в https://yandex.ru/quasar/iot/ ваше устройство было видно.
  2. Вытащить Cookie вашей учетной записи и сохранить. Данная строка нужна для работы всего сервиса. Смотри рисунок выше.
  3. Найдите id колонки. метод $service->getDevices() выведет вам все ваши устройства (во всех домах и комнатах)
  4. Нужно создать специальный сценарий, если его еще нет. Например, это может быть сценарий с именем "Голос" $service->createScenario()
  5. Изменение озвучиваемого текста $service->changeTextSpeechByScenario('Всем привет'); - ограничение в 100 символов
  6. Выполнение команды озвучки сообщения $service->executeSpeechByScenario();
  7. Удаление сценария $service->deleteScenario();

QuasarClient методы



All versions of quasar-iot with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4||^8.0
ext-json Version *
ext-curl Version *
ext-mbstring 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 decole/quasar-iot contains the following files

Loading the files please wait ....