PHP code example of ankane / hightop

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

    

ankane / hightop example snippets


Visit::top('browser');
// [
//   'Chrome' => 63,
//   'Safari' => 50,
//   'Firefox' => 34
// ]

Visit::top('referring_domain', 10);

Visit::top('search_keyword', null: true);

use Illuminate\Database\Query\Expression;

Visit::top(new Expression('lower(referring_domain)'));

Visit::top('city', distinct: 'user_id');

Visit::top('city', min: 10);

Visit::where('browser', 'Firefox')->top('os');
sh
git clone https://github.com/ankane/hightop-php.git
cd hightop-php
composer install
composer test