PHP code example of freyo / mta-h5

1. Go to this page and download the library: Download freyo/mta-h5 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/ */

    

freyo / mta-h5 example snippets


  
  use Freyo\MtaH5\Application;

  p-id',
      'secret_key' => 'your-secret-key',
  ];
  
  $app = new Application($config);
  
  

$app->trend->query($startDate, $endDate);
$app->trend->realtime();
$app->trend->heartbeat();

$app->user->realtime($page = 1);
$app->user->compare($startDate, $endDate);
$app->user->portrait($startDate, $endDate);

$app->device->query($startDate, $endDate, $typeId, $typeContents = []);
$app->device->operator($startDate, $endDate, $typeIds);
$app->device->area($startDate, $endDate, $typeIds);
$app->device->province($startDate, $endDate, $typeIds);

$app->page->realtime();
$app->page->offline($startDate, $endDate, $page = 1);
$app->page->query($startDate, $endDate, $urls);
$app->page->depth($startDate, $endDate);
$app->page->speed($startDate, $endDate, $typeContents, $type);

$app->custom->query($startDate, $endDate, $custom);

$app->source->query($startDate, $endDate, $urls);
$app->source->land($startDate, $endDate, $urls);
$app->source->leave($startDate, $endDate, $urls);

$app->adtag->query($startDate, $endDate, $adTags);

$app = app('mta-h5');