PHPackages                             openlss/core-boot - 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. openlss/core-boot

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

openlss/core-boot
=================

The OpenLSS bootstrapper

0.0.15(13y ago)030117LGPL-3.0+PHPPHP &gt;=5.3.2

Since Mar 23Pushed 13y ago1 watchersCompare

[ Source](https://github.com/nullivex/core-boot)[ Packagist](https://packagist.org/packages/openlss/core-boot)[ Docs](http://openlss.org)[ RSS](/packages/openlss-core-boot/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (17)Used By (17)

openlss/core-boot
=================

[](#openlsscore-boot)

The OpenLSS boostrapper

Usage
-----

[](#usage)

```
require('boot.php');
__boot();
```

Optionally you can predefine root path and a group root

```
define('ROOT',__DIR__);
define('ROOT_GROUP',__DIR__.'/admin');
require('boot.php');
__boot();
```

What it does
------------

[](#what-it-does)

- By just loading the file
- Sets all PHP errors to be exceptions
- Sets up a default exception handler to print friendlier error messages than PHP does by default for uncaught exceptions
- Sets the default timezone to UTC
- Sets the ROOT constant if not already defined
- By calling the \_\_boot() function
- Calls \_\_boot\_pre()
- Calls \_\_boot\_post()
- By calling \_\_boot\_pre()
- Loads all the dynamic config files and user overrides
- Sets the timezone from the config
- By calling \_\_boot\_post()
- Dynamically loads all module init code
- Loads the Composer autoload file (which will init composer modules and enable autoloading)

Reference
---------

[](#reference)

The bootstrapper gives several low level functions to be used for loading the LSS environment

### (void) \_\_boot()

[](#void-__boot)

Boots up the environment

### (void) \_\_boot\_pre()

[](#void-__boot_pre)

See above for details

### (void) \_\_boot\_post()

[](#void-__boot_post)

See above for details

### (bool) \_\_init\_load\_files($dir\_path,$callback=false,$callback\_params=array(),$recurse=true)

[](#bool-__init_load_filesdir_pathcallbackfalsecallback_paramsarrayrecursetrue)

Loads all PHP files from a given directory either by just including them or passing them to a callback

- $dir\_path The path to load files from
- $callback A function to be called with the path to each file for custom loading
- $callback\_params An array of parameters to be passed to the callback in addition to the location of the file
- $recurse When set to TRUE will recurse into lower directories and load all files

### (void) \_\_e($err=array())

[](#void-__eerrarray)

Loads error codes

- Array should be in the following format
- CODE =&gt; 'CONSTANT' \* EG: 1001 =&gt; 'E\_USER\_INVALID' NOTE: Will throw a PHP E\_NOTICE if there is a code or constant conflict

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

15

Last Release

4831d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/83c8e9d55e3ebafb0621a441a51af8f551f61a274fde5400459a29cc320b7b75?d=identicon)[nullivex](/maintainers/nullivex)

![](https://www.gravatar.com/avatar/afffa5c56642e74ba5b880c4b78e115c1b8d00c74ceae5644ac359d10058a911?d=identicon)[spudz76](/maintainers/spudz76)

---

Top Contributors

[![nullivex](https://avatars.githubusercontent.com/u/2321375?v=4)](https://github.com/nullivex "nullivex (37 commits)")[![Spudz76](https://avatars.githubusercontent.com/u/2391234?v=4)](https://github.com/Spudz76 "Spudz76 (5 commits)")[![doyjo](https://avatars.githubusercontent.com/u/3947855?v=4)](https://github.com/doyjo "doyjo (1 commits)")

---

Tags

bootstrapbootopenlssld

### Embed Badge

![Health badge](/badges/openlss-core-boot/health.svg)

```
[![Health](https://phpackages.com/badges/openlss-core-boot/health.svg)](https://phpackages.com/packages/openlss-core-boot)
```

###  Alternatives

[fortawesome/font-awesome

The iconic font, CSS, and SVG framework

76.7k7.5M142](/packages/fortawesome-font-awesome)[kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

1143.3M60](/packages/kartik-v-yii2-editable)[kartik-v/yii2-date-range

An advanced Yii 2 date range picker input for based on bootstrap-daterangepicker plugin.

894.5M42](/packages/kartik-v-yii2-date-range)[kartik-v/yii2-dialog

An asset bundle for bootstrap3-dialog for Yii 2.0 framework.

496.4M19](/packages/kartik-v-yii2-dialog)[kartik-v/yii2-widget-rating

A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)

444.3M8](/packages/kartik-v-yii2-widget-rating)[kartik-v/yii2-widget-timepicker

Enhanced Yii2 wrapper for the bootstrap timepicker plugin (sub repo split from yii2-widgets)

405.1M14](/packages/kartik-v-yii2-widget-timepicker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
