PHP code example of smallprodapp / yukky-log-php-sdk

1. Go to this page and download the library: Download smallprodapp/yukky-log-php-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

smallprodapp / yukky-log-php-sdk example snippets



...
Yukky\YukkyLog.init("<appkey>", "<appsecret>");

new Yukky\Log("PHP Test", ["PHP", "Test"], "Test php desc", null);

new Yukky\FullLog("PHP Test", ["PHP", "Test"], "Test php desc", null, "my type");

Yukky\YukkyLog.error(new Log("PHP Test", ["PHP", "Test"], "Test php desc", null));
or
Yukky\YukkyLog.error(["name" => "PHP Test", "tags" => ["PHP", "Test"], "desc" => "Test php desc", "infos" => null]);

Yukky\YukkyLog.warning(new Log("PHP Test", ["PHP", "Test"], "Test php desc", null));
or
Yukky\YukkyLog.warning(["name" => "PHP Test", "tags" => ["PHP", "Test"], "desc" => "Test php desc", "infos" => null]);

Yukky\YukkyLog.info(new Log("PHP Test", ["PHP", "Test"], "Test php desc", null));
or
Yukky\YukkyLog.info(["name" => "PHP Test", "tags" => ["PHP", "Test"], "desc" => "Test php desc", "infos" => null]);

Yukky\YukkyLog.custom(new FullLog("PHP Test", ["PHP", "Test"], "Test php desc", null, "my type"));
or
Yukky\YukkyLog.custom(["name" => "PHP Test", "tags" => ["PHP", "Test"], "desc" => "Test php desc", "infos" => null, "type" => "my custom type"]);