Download the PHP package malzariey/filament-ga4-analytics without Composer

On this page you can find all versions of the php package malzariey/filament-ga4-analytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-ga4-analytics

Filament GA4 Analytics

A Google Analytics 4 reports page for Filament 5 panels, read through the GA4 Data API with a read-only service account:

Arabic-first (ar, en shipped), RTL-correct, Western digits in both locales, light and dark mode, and no Tailwind utilities — it works in a panel with or without a custom theme.

Install

Without resolvers the page falls back to GA4_PROPERTY_ID and GA4_CREDENTIALS_PATH. Code outside the panel can register the same resolvers on Malzariey\FilamentGa4Analytics\Support\Ga4Connection.

Google side

  1. Enable the Google Analytics Data API in the service account's Cloud project.
  2. In GA, Admin → Property access management, add the service account e-mail as Viewer.
  3. Put its JSON key outside the web root, readable only by the site user (0600). The property id is the numeric id, not the G-XXXXXXXXXX measurement id.

Configure the reports

Live lists link through linkUsing() as live:<key> (dated today); staff events as staff_event:<name>. A live list whose own request GA refuses (other than for quota) falls back to its fallbackUsing() closure, or to an empty list — the rest of the live card stays up.

To reword the page for one host (a funnel heading, a KPI name, an error that names your own settings page), override only those keys in lang/vendor/filament-ga4-analytics/{ar,en}/analytics.php — Laravel merges them over the package's.

Loading behaviour

Caching and quota

Every report is cached and shared by all viewers (report_seconds 300, realtime_seconds 25, failures error_seconds 60). The Data API meters a daily token budget per property; the cache is what keeps a busy page inside it. Call app(AnalyticsReports::class)->forget() and app(TokenProvider::class)->forgetAll() when the property or key changes.

Tests

Set GA4_ANALYTICS_DRIVER=fake in phpunit.xml. The fake answers deterministic rows and refuses to run in production; an unknown driver name throws rather than falling back to it.

Publishing

License

MIT


All versions of filament-ga4-analytics with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
filament/filament Version ^5.0
illuminate/contracts Version ^12.0|^13.0
malzariey/filament-daterangepicker-filter Version ^5.0.7
spatie/laravel-package-tools Version ^1.16.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package malzariey/filament-ga4-analytics contains the following files

Loading the files please wait ...