Download the PHP package filahq/statify without Composer

On this page you can find all versions of the php package filahq/statify. 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 statify

Statify

Export your Filament stat widgets as API.

Installation

Statify's core package only requires Filament widgets. It supports both Filament 4 and Filament 5.

If you also want the optional StatifyPlugin panel integration, install the full Filament package in your app:

Publish the config:

Configuration

Usage

Register Widgets

Register your StatsOverviewWidget classes in a service provider:

Or, if your app has the full filament/filament package installed, use the optional Filament plugin in your panel provider:

API Endpoints

Get all stats:

Get stats from a specific widget:

The widget slug is the kebab-case version of the class name (e.g., RevenueStatsWidget becomes revenue-stats-widget).

Authentication

Statify supports two authentication modes, configured via STATIFY_GUARD:

Static Token (default)

Set STATIFY_TOKEN in your .env file:

Authenticate via query parameter or header:

If no token is configured, the API is open (no auth required).

Laravel Sanctum

Set the guard to Sanctum in your .env:

Install and configure Laravel Sanctum in your application before using this mode.

Generate a personal access token for your user:

Authenticate with the Sanctum token:

Response Format

License

MIT


All versions of statify with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/widgets Version ^4.0|^5.0
illuminate/support Version ^11.28|^12.0
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 filahq/statify contains the following files

Loading the files please wait ...