Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codenomdev/codeigniter4-handlers
Cross-module handler registration, for CodeIgniter 4
https://github.com/codenomdev/codeigniter4-handlers
Last synced: about 2 months ago
JSON representation
Cross-module handler registration, for CodeIgniter 4
- Host: GitHub
- URL: https://github.com/codenomdev/codeigniter4-handlers
- Owner: codenomdev
- License: mit
- Created: 2020-07-25T11:31:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-25T11:53:59.000Z (over 4 years ago)
- Last Synced: 2024-11-14T14:43:30.171Z (2 months ago)
- Language: PHP
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# codeigniter4-handlers
Cross-module handler registration, for CodeIgniter 4## Quick Start
1. Install with Composer: `> composer require codenom/handlers`
2. Search for and register handlers: `> php spark handlers:register`## Features
The Handlers library allows for defining a config file and then registering any
supported handlers across all namespaces.## Installation
Install easily via Composer to take advantage of CodeIgniter 4's autoloading capabilities
and always be up-to-date:
* `> composer require codenom/handlers`Or, install manually by downloading the source files and adding the directory to
`app/Config/Autoload.php`.## Configuration (optional)
The library's default behavior can be altered by extending its config file. Copy
**bin/HandlersConfig.php** to **app/Config/** and follow the instructions
in the comments. If no config file is found in **app/Config** the library will use its own.## Usage
Run the following command to scan for any supported config files and register the defined handlers:
`> php spark handlers:register`
Handlers may be disabled using the `delete()` method from their corresponding Model.
The `register` command may be rerun anytime to add new or update existing handlers.