Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Nhif

Laravel Nhif Laravel Package

omakei/laravel-nhif

A Laravel package for integrating Kenya's NHIF into PHP applications. It provides ready-made configuration and helpers for common NHIF workflows, helping developers add health-insurance functionality without repetitive boilerplate or direct API plumbing. It is ideal for apps needing NHIF-related fea...

View on GitHub
Deep Wiki
Context7

A Laravel package to integrate NHIF Tanzania with hospital management systems

Frequently asked questions about Laravel Nhif
What does the omakei/laravel-nhif package actually do?
It is a Laravel package that adds NHIF health insurance integration to PHP applications, aimed at hospital management systems. It ships ready-made configuration and helpers for common NHIF workflows so you do not have to write repetitive boilerplate or plumb the NHIF API directly. It installs through Composer like any standard Laravel package.
How do I install omakei/laravel-nhif in a Laravel project?
Run composer require omakei/laravel-nhif and pin a constraint such as ^2.2. Packages following standard Laravel conventions auto-discover their service provider, so manual registration is usually unnecessary. After install, publish any shipped configuration and set your NHIF credentials in the environment file as described in the README. Check composer.json first for the PHP and Laravel version floor.
How do I configure NHIF credentials for laravel-nhif?
The package provides ready-made configuration for common NHIF workflows, so credentials normally live in your .env file and are read through a published config file. Publish the config with the standard vendor:publish command and fill in the values documented in the README. Keep real credentials out of version control and use per-environment secrets. If the package distinguishes sandbox from production endpoints, configure them separately per environment.
Which Laravel versions does laravel-nhif support?
Release 2.2.0 adds Laravel 13 support and extends the CI matrix to run Laravel 13.* against Testbench 11.*, alongside the versions already covered. The release notes describe that as additive rather than a shift to a new floor, but the composer.json diff is the authoritative source. Confirm the framework constraint before assuming older Laravel majors are still admitted.
Does laravel-nhif 2.2.0 raise the minimum PHP version?
The package's PHP floor is defined in composer.json and can be pulled upward indirectly by the Testbench 11.* pairing used for Laravel 13 testing. In a release of this shape, that implied PHP bump is the most likely silent breaking change. Read the composer.json diff before upgrading services that run on older PHP runtimes.
Is laravel-nhif safe to upgrade in production?
2.2.0 is a semver-minor release with additive framework support and no deprecations or breaking changes called out, so technical risk is low. Upgrade in a non-production service first: pin ^2.2, run composer update omakei/laravel-nhif --with-dependencies on a branch, then run the service test suite. Watch specifically for constraint conflicts and a raised PHP floor. Do not couple this bump to unrelated dependency upgrades.
How do I test NHIF integration in a Laravel application?
The package follows standard Laravel package conventions and uses an Orchestra Testbench harness, so you can test your own integration by faking HTTP responses and asserting the requests your application sends. Keep credentials behind config so tests can inject stub values instead of real secrets. Where a sandbox endpoint exists, run contract checks against it rather than production.
Should I use laravel-nhif or call the NHIF API directly?
Calling the NHIF API directly means owning authentication, request shaping, error handling and retries yourself, which is the plumbing this package exists to remove. Choose the package if your workflows map onto the ones it supports and you want to stay within Laravel conventions. Go direct only if you need endpoints or behaviour outside its current surface.
Can I use laravel-nhif in a hospital management system?
Yes, hospital management systems are the stated target use case, and the package supplies helpers for common NHIF workflows instead of raw API calls. That lets your team focus on clinical and administrative domain logic rather than insurance boilerplate. Validate it against your specific workflows, since the test suite covers framework compatibility, not your integration surface.
Who maintains laravel-nhif and how actively is it developed?
The package is maintained by omakei on GitHub, and release 2.2.0 extending CI to track Laravel 13 is a positive signal that upstream framework releases are being followed. Maintainer count and release cadence should still be reviewed for bus-factor risk before putting the package on a critical path. Look at issue activity and release history as part of your evaluation.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect