Installer
in package
FinalYes
Composer post-create-project installer.
Handles the setup of a new codeigniter-extension project after
composer create-project is executed. Configures CodeIgniter,
copies skeleton files, and sets up frontend assets.
Table of Contents
Constants
- DOCROOT = 'public'
- Path to the public document root directory.
- FRAMEWORK = 'vendor/codeigniter/framework'
- Path to the CodeIgniter framework directory.
Methods
- run() : void
- Run the project installation process.
Constants
DOCROOT
Path to the public document root directory.
public
string
DOCROOT
= 'public'
FRAMEWORK
Path to the CodeIgniter framework directory.
public
string
FRAMEWORK
= 'vendor/codeigniter/framework'
Methods
run()
Run the project installation process.
public
static run(Event $event) : void
Performs the following steps:
- Copy and configure application files
- Create entry point (index.php)
- Copy sample database schema (init.sql)
- Configure CodeIgniter settings
- Setup frontend module (npm install & build)
- Clean up unnecessary files
Parameters
- $event : Event
-
Composer script event.