PHP code example of hananils / kirby-tracker

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

    

hananils / kirby-tracker example snippets



$notifications = new Hananils\TracksCollection('notifications');
$notifications
  ->filterBy('datetime', '>=', $start->format('Y-m-d'))
  ->sortBy('datetime', 'asc')
  ->limit(10);

$tracks = new Hananils\TracksCollection();
$notifications = new Hananils\TracksCollection('notifications');