Download the PHP package felixmuhoro/laravel-mpesa-filament without Composer

On this page you can find all versions of the php package felixmuhoro/laravel-mpesa-filament. 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 laravel-mpesa-filament

laravel-mpesa-filament

A production-quality Filament v3 admin panel plugin for managing M-Pesa transactions in Laravel applications.

Built on top of felixmuhoro/laravel-mpesa, this package gives you a complete admin interface for your M-Pesa integration without writing a single line of UI code.


Features


Requirements

Requirement Version
PHP ^8.1
Laravel ^10.0 | ^11.0 | ^12.0 | ^13.0
Filament ^3.0
felixmuhoro/laravel-mpesa ^1.2

Installation

Publish the config (optional):


Setup

Register the plugin on your Filament panel inside your PanelProvider:


Configuration

After publishing, edit config/mpesa-filament.php:


Plugin API

MpesaFilamentPlugin

Method Description
make() Create plugin instance (use in panel provider)
navigationGroup(string $group) Set the sidebar navigation group label
navigationSort(int $sort) Set sort order within the group
canViewAny(bool $condition) Toggle whether any user can access the resources
withTransactionResource(bool) Enable/disable the Transaction resource
withDashboardPage(bool) Enable/disable the M-Pesa Dashboard page
withWidgets(bool) Enable/disable the stats/chart/table widgets

Included Components

Resources

TransactionResource

Full Filament resource for the mpesa_transactions table.

Columns: Receipt Number, Phone, Amount (formatted KES), Status (badge), Type (badge), Reference, Date

Filters:

Actions:

Widgets

RevenueStatsWidget

Four stat cards:

  1. Today's Revenue vs yesterday (with sparkline)
  2. This Month's Revenue vs last month
  3. 30-day Success Rate (%)
  4. Failed Transactions Today

RevenueChartWidget

30-day line chart with a toggle filter between Revenue (KES) and Transaction Count.

LatestTransactionsWidget

Table of the last N transactions (configurable via latest_transactions_limit).

Pages

MpesaDashboardPage

Dedicated admin page at /mpesa-dashboard combining all three widgets. Registered in the same navigation group as the Transaction resource.

Actions

InitiateStkPushAction

Can be added to any table or page. Opens a modal form with:

Calls Mpesa::stkPush() and shows a success or error notification.

Filters

DateRangeFilter

Reusable date-range filter for any table column:


Testing

Tests use Pest and cover list rendering, search, all four filter types, sorting, view page, and permission helpers.


Changelog

v1.0.0


License

MIT — see LICENSE for details.


Credits

Built by Felix Muhoro.


All versions of laravel-mpesa-filament with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
felixmuhoro/laravel-mpesa Version ^1.2
illuminate/support Version ^10.0|^11.0|^12.0|^13.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 felixmuhoro/laravel-mpesa-filament contains the following files

Loading the files please wait ...