thujohn/analytics
Larablocks Analysis
thujohn/analytics works with Laravel 4 and 5 (latest release 1.0.23, Dec 8, 2014), all past end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 4 and 5, past end of life
- No release in the last 12 months (last: Dec 8, 2014)
- 3 downloads a month (needs 10,000)
- 110 GitHub stars (at least 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Dec 8, 2014.
- No releases in the last 12 months.
- First released: Jun 20, 2013.
- Monthly downloads: 3, down 40% from six months ago.
- 21 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 26, 2026.
| Install | |
|---|---|
composer require thujohn/analytics |
|
| Latest Version: | 1.0.23 |
| PHP: | >=5.3.0 |
| Laravel: | 4 · 5 |
| License: | MIT |
| Last Updated: | Sep 11, 2015 |
| Links: | GitHub · Packagist |
Analytics
Port of Laravel 3 bundle lordcoste/analytics-s2s for Laravel 4
Installation
Add thujohn/analytics to composer.json.
"thujohn/analytics": "dev-master"
Run composer update to pull down the latest version of Analytics.
Now open up app/config/app.php and add the service provider to your providers array.
'providers' => array(
'Thujohn\Analytics\AnalyticsServiceProvider',
)
Now add the alias.
'aliases' => array(
'Analytics' => 'Thujohn\Analytics\AnalyticsFacade',
)
Configuration
Run php artisan config:publish thujohn/analytics and modify the config file with your own informations.
Usage
Querying the API for visits and pageviews in the last week.
More information about this calling the Google Analytics API can be found here https://developers.google.com/apis-explorer/#s/analytics/v3/analytics.data.ga.get A list of all Google Analytics metrics can be found here https://developers.google.com/analytics/devguides/reporting/core/dimsmets
$site_id = Analytics::getSiteIdByUrl('http://github.com/'); // return something like 'ga:11111111'
$stats = Analytics::query($site_id, '7daysAgo', 'yesterday', 'ga:visits,ga:pageviews');
Related Packages
Kudobuzz Google Analytics Is A PHP Library For Making Google Analytics And OAuth...
Package to access the API of a Google account authorised by a user, for Laravel...
A Laravel package for Google Search Console API integration
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.0.23 | >=5.3.0 | 4.*| | MIT | |
| 1.0.22 | >=5.3.0 | 4.*| | MIT | |
| 1.0.21 | >=5.3.0 | 4.*| | MIT | |
| 1.0.20 | >=5.3.0 | 4.*| | MIT | |
| 1.0.19 | >=5.3.0 | 4.x | MIT | |
| 1.0.18 | >=5.3.0 | 4.x | MIT | |
| 1.0.17 | >=5.3.0 | 4.x | MIT | |
| 1.0.16 | >=5.3.0 | 4.x | MIT | |
| 1.0.15 | >=5.3.0 | 4.x | MIT | |
| 1.0.14 | >=5.3.0 | 4.x | MIT | |
| 1.0.13 | >=5.3.0 | 4.x | MIT | |
| 1.0.12 | >=5.3.0 | 4.x | MIT | |
| 1.0.11 | >=5.3.0 | 4.x | MIT | |
| 1.0.10 | >=5.3.0 | 4.0.* | MIT | |
| 1.0.8 | >=5.3.0 | >=4.0.0 | MIT | |
| 1.0.7 | >=5.3.0 | >=4.0.0 | MIT | |
| 1.0.6 | >=5.3.0 | 4.0.x | MIT | |
| 1.0.4 | >=5.3.0 | MIT | ||
| 1.0.3 | >=5.3.0 | MIT | ||
| 1.0.2 | >=5.3.0 | MIT | ||
| 1.0.1 | >=5.3.0 | MIT | ||
| 1.0.0 | >=5.3.0 | MIT |
