PHPackages                             chandachewe/analytics - 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. chandachewe/analytics

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

chandachewe/analytics
=====================

web analytics to view the total number of people who visited your website in a specific month

v1.0.0(4y ago)04MITPHPPHP ^7.3|^8.0

Since Jan 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/chandachewe10/web-analytics)[ Packagist](https://packagist.org/packages/chandachewe/analytics)[ RSS](/packages/chandachewe-analytics/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

### Web Analytics

[](#web-analytics)

##### web analytics to view the total number of people who visited your website in a specific month for the current year.

[](#web-analytics-to-view-the-total-number-of-people-who-visited-your-website-in-a-specific-month-for-the-current-year)

### Installation

[](#installation)

##### If you have composer installed in your machine install this package on your CLI as:

[](#if-you-have-composer-installed-in-your-machine-install-this-package-on-your-cli-as)

##### `composer require chandachewe/analytics`

[](#composer-require-chandacheweanalytics)

### Use Case

[](#use-case)

##### Once installed in your machine import the database which is named as `ipman`

[](#once-installed-in-your-machine-import-the-database-which-is-named-as-ipman)

##### you can customise the database credentials in `src/Db.php`

[](#you-can-customise-the-database-credentials-in-srcdbphp)

##### On your landing page include the following on top:

[](#on-your-landing-page-include-the-following-on-top)

##### 1. `use ChandaChewe\Webanalytics\Config;`

[](#1-use-chandachewewebanalyticsconfig)

##### 2. `require_once __DIR__ . '/vendor/autoload.php';`

[](#2-require_once-__dir__--vendorautoloadphp)

##### 3. `new Config();`

[](#3-new-config)

##### A sample is given for you in `index.php` as the landing page

[](#a-sample-is-given-for-you-in-indexphp-as-the-landing-page)

##### This package uses the IPV4 Addresses of users to count the number of visits on your website

[](#this-package-uses-the-ipv4-addresses-of-users-to-count-the-number-of-visits-on-your-website)

##### Hence it needs to be tested in live production to capture users IPV4 addresses

[](#hence-it-needs-to-be-tested-in-live-production-to-capture-users-ipv4-addresses)

##### as localhost cannot do that.

[](#as-localhost-cannot-do-that)

##### For testing purposes in localhost you can search for any `IPV4` Address and replace it

[](#for-testing-purposes-in-localhost-you-can-search-for-any-ipv4-address-and-replace-it)

##### on `$usersIP` in `src/Config.php`

[](#on-usersip-in-srcconfigphp)

##### Visit `analytics.php` to view web visitors in that particular month.

[](#visit-analyticsphp-to-view-web-visitors-in-that-particular-month)

### Contributions

[](#contributions)

##### This is an open source PHP Package which uses `freegeoip` and `jscanvas`. You are free

[](#this-is-an-open-source-php-package-which-uses-freegeoip-and-jscanvas-you-are-free)

##### to make any `meaningful` contributions, PR etc to enhace it.

[](#to-make-any-meaningful-contributions-pr-etc-to-enhace-it)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

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

Unknown

Total

1

Last Release

1578d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/676eb212f5dc38c0267b9e1b75c0024950e91329f80f3f862e2b64fb975a9e41?d=identicon)[chandachewe10](/maintainers/chandachewe10)

---

Top Contributors

[![chandachewe10](https://avatars.githubusercontent.com/u/82529756?v=4)](https://github.com/chandachewe10 "chandachewe10 (4 commits)")

---

Tags

zip codelatitudelongitudeipv4country codeweb-analyticscountry region

### Embed Badge

![Health badge](/badges/chandachewe-analytics/health.svg)

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

###  Alternatives

[anthonymartin/geo-location

Powerful GeoCoding library: Retrieve bounding box coordinates, distances between geopoints, point in polygon, get longitude and latitude from addresses and more with GeoLocation for PHP

196949.5k5](/packages/anthonymartin-geo-location)[php-coord/php-coord

PHPCoord is a PHP library to aid in handling coordinates. It can convert coordinates for a point from one system to another and also calculate distance between points.

110914.5k12](/packages/php-coord-php-coord)[data-values/geo

Geographical value objects, parsers and formatters

20631.0k18](/packages/data-values-geo)[laravie/geotools

Geo-related tools PHP 7+ library

19105.4k1](/packages/laravie-geotools)[adlino/locations

Iran Provinces, Counties and Cities with a Google Map Location for Laravel.

171.3k](/packages/adlino-locations)

PHPackages © 2026

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