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(10y 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 1w 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 46% 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

3618d 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.3k37.6k21](/packages/tempest-framework)[aedart/athenaeum

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

265.2k](/packages/aedart-athenaeum)[zemit-cms/core

Build Phalcon REST APIs faster with database-first scaffolding, model relationships, eager loading, identity, permissions, CLI, and WebSocket support.

138.5k1](/packages/zemit-cms-core)

PHPackages © 2026

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