PHPackages                             maksuco/reports - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. maksuco/reports

ActiveLaravel[Utility &amp; Helpers](/categories/utility)

maksuco/reports
===============

Get visits, pageviews etc

v0.7.5(7y ago)026MITPHP

Since Aug 1Pushed 7y ago1 watchersCompare

[ Source](https://github.com/maksuco/reports)[ Packagist](https://packagist.org/packages/maksuco/reports)[ RSS](/packages/maksuco-reports/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Reports
=======

[](#reports)

This package helps manage analytics and counts.

Installation
------------

[](#installation)

This packages requires Spatie/Analytics for the charts You can install the package via composer:

```
$ composer require maksuco/Reports
OR
$ composer require maksuco/Reports:dev-master
```

This Package works with autodiscovery in Laravel +5.5, but is compatible with older versions

Usage
-----

[](#usage)

Spatie Laravel-Analytics is requiered to use google analytics, the package is automatically install but it needs the configuration, so you can also use methods like:

```
use Analytics;
use Spatie\Analytics\Period;

//fetch the most visited pages for today and the past week
Analytics::fetchMostVisitedPages(Period::days(7));

//fetch visitors and page views for the past week
Analytics::fetchVisitorsAndPageViews(Period::days(7));

```

Analytics Helpers
=================

[](#analytics-helpers)

Analytics:Get the dates from today minus.... $period = 'month','day','year','all' $period2 = 1,2,3, etc..

```
  \Reports::period($period,$period2);
```

Analytics:Get the visits and pageviews $path = /someurl/blogname

```
  \Reports::counter($period,$period2,$path);
```

Analytics:Get the visits and pageviews for Charts $path = /someurl/blogname return \[$visitors,$pageviews,$labels\];

```
  \Reports::chart($period,$period2,$path);

```

Analytics:Get the visits and pageviews for Charts

```
  \Reports::charts($data1);

```

Reports
=======

[](#reports-1)

Get the $count and $sum of 2 fields per table, the date field is the one to be used, example: created\_at

```
  \Reports::reports($biz_id,$table,$date,$sum);

```

Get data for a chart Report, same as before, but this returns 'total\_sum', 'total\_count', 'date', 'sum' and 'count' so you can use it in charts data sets

```
  $chart = \Reports::reports_chart($biz_id,$table,$date,$field);
  {!! $chart['sum'] !!}

```

Security
--------

[](#security)

If you discover any security related issues, please report it.

Credits
-------

[](#credits)

- [Maksuco.com](http://maksuco.com)
- [ReBilling.co](https://rebilling.co)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~11 days

Total

3

Last Release

2821d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9137263?v=4)[Maksuco](/maintainers/maksuco)[@maksuco](https://github.com/maksuco)

---

Top Contributors

[![nam-co](https://avatars.githubusercontent.com/u/3951529?v=4)](https://github.com/nam-co "nam-co (17 commits)")

---

Tags

laravel reportsmaksuco

### Embed Badge

![Health badge](/badges/maksuco-reports/health.svg)

```
[![Health](https://phpackages.com/badges/maksuco-reports/health.svg)](https://phpackages.com/packages/maksuco-reports)
```

###  Alternatives

[wenzhixin/bootstrap-table

An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)

11.8k283.4k1](/packages/wenzhixin-bootstrap-table)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[paxha/laravel-reportable

This Laravel Eloquent extension provides record according to dates using models.

111.2k](/packages/paxha-laravel-reportable)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
