beyondcode/fathom-api
This package is abandoned and no longer maintained.
No replacement package was suggested.
Fathom Analytics API
Maintainers
1.1.0
2021-07-12 12:26 UTC
Requires
- php: ^7.3
- nesbot/carbon: ^2.31
- symfony/browser-kit: ^5.1
- symfony/css-selector: ^5.2
- symfony/http-client: ^5.1
- symfony/mime: ^5.2
Requires (Dev)
- phpunit/phpunit: ^9.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 3da1a3e87f60cedaf0889b7bfced3961411ced6d
- Marcel Pociot <marcel.woop@beyondco.de>
This package is auto-updated.
Last update: 2024-01-12 19:45:00 UTC
README
This is an unofficial PHP SDK to get statistics out of Fathom Analytics, as long as it does not offer an official API.
Installation
You can install the package via composer:
composer require beyondcode/fathom-api
Usage
$analytics = new BeyondCode\FathomAnalytics($email, $password); $sites = $analytics->getSites(); $analytics->getCurrentVisitors($siteId); // Returns the visitor data for today $analytics->getData($siteId); // Returns the visitor data for the whole week until today $analytics->getData($siteId, Carbon::now()->startOfWeek()); // Returns the visitor data for two days ago until yesterday. $analytics->getData($siteId, Carbon::now()->subDays(2), Carbon::now()->subDays(1));
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email marcel@beyondco.de instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
