Installation
Get started with jengo/notifications in your CodeIgniter 4 application.
1. Install via Composer
Add jengo/notifications to your application dependencies:
bash
composer require jengo/notifications2. Run the Jengo Installer
Run the automated installer to publish configuration, register helpers, execute database migrations, and verify subsystem health:
bash
php spark jengo:install notificationsThis command automatically:
- Publishes Configuration: Creates
app/Config/Notifications.phpextendingBaseNotifications. - Registers Autoload Helper: Adds
'notification'to$helpersinapp/Config/Autoload.phpso global functionsnotify()andnotification()are always available. - Executes Database Migrations: Runs
php spark migrate -n \Jengo\Notificationsto scaffold thenotificationstable. - Verifies Readiness: Confirms database connectivity, table schema availability, and cURL extension readiness.
Manual Installation (Alternative)
If you prefer performing each step manually:
1. Create Migration File
bash
php spark notifications:table2. Run Migrations
bash
php spark migrateOr run the package migrations directly:
bash
php spark migrate -n \Jengo\Notifications3. Publish Configuration
Copy vendor/jengo/notifications/src/Config/Notifications.php to app/Config/Notifications.php and adjust the namespace to Config.
