PHP code example of czemu / laravel-simplestats

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

    

czemu / laravel-simplestats example snippets


Simplestats::update('file', 1);

Simplestats::update('print', 2, TRUE);

Simplestats::get('page', 3);

Simplestats::get('download', 4, '2018-05-20');

Simplestats::get('download', 5, ['2018-05-01', '2018-05-15']);
`
php artisan vendor:publish --provider='Czemu\Simplestats\SimplestatsServiceProvider' --tag="migrations"
`
php artisan migrate
`
php artisan vendor:publish --provider='Czemu\Simplestats\SimplestatsServiceProvider' --tag="config"