PHPackages                             arif-rh/ci4-themes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. arif-rh/ci4-themes

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

arif-rh/ci4-themes
==================

Theme management for CodeIgniter 4

1.1.1(5y ago)850842MITPHPCI failing

Since Mar 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/arif-rh/ci4-themes)[ Packagist](https://packagist.org/packages/arif-rh/ci4-themes)[ Docs](https://github.com/arif-rh/ci4-themes)[ RSS](/packages/arif-rh-ci4-themes/feed)WikiDiscussions master Synced today

READMEChangelog (9)Dependencies (4)Versions (12)Used By (2)

CodeIgniter 4 Themes
====================

[](#codeigniter-4-themes)

[![Build Status](https://camo.githubusercontent.com/e00d1b94fcdd61c3b536521bdbc980a6abd3509ad592b6c599afc45d31f3c8cd/68747470733a2f2f7472617669732d63692e636f6d2f617269662d72682f6369342d7468656d65732e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/arif-rh/ci4-themes) [![Coverage Status](https://camo.githubusercontent.com/544718c8621f58eef7ea518de340478ba96bb687dc81044436878036e5ced0ff/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f617269662d72682f6369342d7468656d65732f62616467652e737667)](https://coveralls.io/github/arif-rh/ci4-themes) [![Quality Gate Status](https://camo.githubusercontent.com/9d1640486de5c37955e26fe916b6177699d2c2d44465d114305f99c64068964a/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d617269662d72685f6369342d7468656d6573266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=arif-rh_ci4-themes) [![Vulnerabilities](https://camo.githubusercontent.com/5ade6b141c1b8f4a2a95980df59b764a54aaa5386557f68258a1eb635653bd8e/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d617269662d72685f6369342d7468656d6573266d65747269633d76756c6e65726162696c6974696573)](https://sonarcloud.io/dashboard?id=arif-rh_ci4-themes) [![Security Rating](https://camo.githubusercontent.com/aaa12f42d691fd7ab2f639207bd6aae214d16a58258dd1f0b68d64ea20a751d4/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d617269662d72685f6369342d7468656d6573266d65747269633d73656375726974795f726174696e67)](https://sonarcloud.io/dashboard?id=arif-rh_ci4-themes) [![Bugs](https://camo.githubusercontent.com/7e184fe3adbf22d10c65d411195435dd0757ee24496eb154117eac3f8641d6e2/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d617269662d72685f6369342d7468656d6573266d65747269633d62756773)](https://sonarcloud.io/dashboard?id=arif-rh_ci4-themes) [![Maintainability Rating](https://camo.githubusercontent.com/f3a8816932a0ab5e1e1d67a8e057811856b172557a144ca033143b56c95d140e/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d617269662d72685f6369342d7468656d6573266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/dashboard?id=arif-rh_ci4-themes)

Installation
------------

[](#installation)

1. install via composer, run `composer require arif-rh/ci4-themes`
2. setup your theme config (optional), if you don not setup config, then it will use default one
3. if you do not change config, theme folder structure will be like below, so copy all your files here:

```
public/
└── themes/
    └── starter/
        ├── css/
        │ └── your-css.css
        ├── js/
        │ └── your-js.js
        ├── img/
        └── plugins/

```

CI4 Themes Documentation
========================

[](#ci4-themes-documentation)

Table of Contents
-----------------

[](#table-of-contents)

- [CodeIgniter 4 Themes](#codeigniter-4-themes)
    - [Installation](#installation)
- [CI4 Themes Documentation](#ci4-themes-documentation)
    - [Table of Contents](#table-of-contents)
- [Themes Config](#themes-config)
    - [Themes](#themes)
        - [init](#init)
        - [addCSS](#addcss)
        - [addJS](#addjs)
        - [addInlineJS](#addinlinejs)
        - [addExternalCSS](#addexternalcss)
        - [addExternalJS](#addexternaljs)
        - [loadPlugins](#loadplugins)
        - [useFullTemplate](#usefulltemplate)
        - [setHeader](#setheader)
        - [setTemplate](#settemplate)
        - [setFooter](#setfooter)
        - [setTheme](#settheme)
        - [render](#render)
        - [renderCSS](#rendercss)
        - [renderJS](#renderjs)
        - [setPageTitle](#setpagetitle)
        - [setVar](#setvar)
        - [getData()](#getdata)

Themes Config
=============

[](#themes-config)

- Full name: \\Arifrh\\Themes\\Config\\Themes

This is default config themes. You can override themes by extending this default themes, for example make file inside App\\Config\\

```
