lorik/fortune_number

Example Project assignment to count visitors of the page

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:drupal-module

pkg:composer/lorik/fortune_number

v1.0.1 2023-03-27 12:51 UTC

This package is auto-updated.

Last update: 2025-12-27 20:23:37 UTC


README

This module is an assignment.

It has two separate blocks:
  1) show visitors counter, which is stored in a file (CountVisitorsInFileBlock.php);
  2) show visitors counter, which is stored in a DB table (CountVisitorsInDBBlock.php).

To install package run "$ composer require lorik/fortune_number" in your console.
Then go to http://assignment.test/web/admin/modules and install module via name 'Fortune Number Module'.
After that go to http://assignment.test/web/admin/structure/block/list/olivero and enable blocks 'Count Visitors in DB Block' or 'Count Visitors in a File Block' to your page path or '/indexAction/page' (path for this module controller).