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

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

logikostech/core
================

LT Project Core

1.0.1(9y ago)0120MITPHPPHP &gt;=5.4

Since Jun 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/logikostech/core)[ Packagist](https://packagist.org/packages/logikostech/core)[ Docs](https://github.com/logikostech/core)[ RSS](/packages/logikostech-core/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

Core classes required for logikos applications
==============================================

[](#core-classes-required-for-logikos-applications)

[![Travis CI](https://camo.githubusercontent.com/cdcb2e03f21f37a02d82aabddb3427278683137e922df6649f7b61868e047120/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c6f67696b6f73746563682f636f72652f6d61737465722e737667)](https://travis-ci.org/logikostech/core)[![Software License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/logikostech/core/master/LICENSE)

Core for LT projects.

Logikos\\Application\\Bootstrap
-------------------------------

[](#logikosapplicationbootstrap)

### Basic usage

[](#basic-usage)

```
  // public/index.php

  $basedir = realpath(__DIR__.'/..');
  $appdir  = $basedir.'/app';

  /**
   * Composer
   */
  $composer = $basedir . '/vendor/autoload.php';
  if (file_exists($composer))
    include_once $composer;

  $boot = new Bootstrap([
      'basedir' => $basedir,
      'appdir'  => $appdir,
      'confdir' => $appdir.'/config'
  ]);

  /**
   * get loaded config from Bootstrap, which will auto merge $confdir."/".getenv('APP_ENV').".php"
   */
  $config = Bootstrap::getConfig();

  /**
   * Include services
   */
  $di = require APP_PATH . '/config/services.php';

  echo $boot->getContent();
```

Logikos\\Application\\Bootstrap\\Modules
----------------------------------------

[](#logikosapplicationbootstrapmodules)

If you pass module configuration information to Bootstrap(), either the module definitions or the defaultModule then bootstrap will automaticly try to initialize the modules Bootstrap::initModules()

Of course you can always initModules manualy yourself:

```
  $appdir = realpath(__DIR__.'/../app');
  $boot = new Bootstrap($options);
  $boot->initModules(
    [
      'frontend' => [
        'className' => 'Frontend\Module',
        'path'      => $appdir.'/modules/frontend/Module.php'
      ],
      'backend' => [
        'className' => 'Backend\Module',
        'path'      => $appdir.'/modules/backend/Module.php'
      ]
    ],
    [
      'defaultModule' => 'frontend',
      'modulesDir'    => $appdir.'/modules'
    ]
  );
  echo $boot->getContent();
```

Note that by specifying modulesDir we really would not have needed to define the modules as the class automaticly finds and registers all modules within the modulesDir. Also the default modulesDir is APP\_DIR.'/modules' and the default defaultModule is 'frontend' so really $boot-&gt;initModules() would work all by itself with no options if the defaults work for your application.

### Module Routeing

[](#module-routeing)

By default the Modules class will automaticly register your modles with the router. It uses /controller/action/params for the default module and /modulename/controller/action/params for all non-default modules. You can override this per module however within your ModuleDefinition class

```
class Module implements ModuleDefinitionInterface {
  public static function defineRoutes(DiInterface $di) {
    /* @var $router \Phalcon\Mvc\Router */
    $router  = $di->get('router');
    $default = $router->getDefaults()['module'];

    $router->add("/customroute/foo/:params", array(
        'module' => 'somemodule,
        'controller' => 'index',
        'action' => 'foo',
        'params' => 1
    ))->setName('somemodule_foo');
  }

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~40 days

Total

3

Last Release

3573d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22dea9d45991672bd10001bb3cfaf5900bdd27d29322564581dadaa8f863e565?d=identicon)[logikos](/maintainers/logikos)

---

Top Contributors

[![tempcke](https://avatars.githubusercontent.com/u/6674150?v=4)](https://github.com/tempcke "tempcke (2 commits)")

---

Tags

plugincorephalconlogikostechlogikos

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[ffraenz/private-composer-installer

A composer install helper for private packages

2321.7M5](/packages/ffraenz-private-composer-installer)[phlak/directory-lister

PHP directory lister

2.5k1.4k](/packages/phlak-directory-lister)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

43785.5k4](/packages/lullabot-drainpipe)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[balbuf/composer-wp

Manage WordPress core, plugins, and themes with composer.

173.6k](/packages/balbuf-composer-wp)

PHPackages © 2026

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