PHPackages                             basicis/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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. basicis/core

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

basicis/core
============

Basicis PHP Framework - Core

v1.0-alpha2(5y ago)01571MITPHPPHP &gt;=7.3|&gt;=8.0

Since Feb 1Pushed 5y agoCompare

[ Source](https://github.com/basicis/core)[ Packagist](https://packagist.org/packages/basicis/core)[ Docs](https://basicis.github.io/core/)[ RSS](/packages/basicis-core/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (15)Versions (3)Used By (1)

 [ ![](https://camo.githubusercontent.com/be3298bc251c15f9eefefa8e23d52be0f9091b30798389852edf9f32110b05fb/68747470733a2f2f706f7365722e707567782e6f72672f626173696369732f636f72652f76657273696f6e) ](https://packagist.org/packages/basicis/core "Latest stable Version") [ ![](https://camo.githubusercontent.com/ca2d82f50cf75f64c3f2c60af5a0f312d18b4b73585715a3ed0a156de3e6ba03/68747470733a2f2f706f7365722e707567782e6f72672f626173696369732f636f72652f646f776e6c6f616473) ](https://packagist.org/packages/basicis/core "Total Downloads") [ ![](https://camo.githubusercontent.com/930a406d966d933ce49dc694b27f975dbbaab40e4a8f992d1a529def54c9bec8/68747470733a2f2f706f7365722e707567782e6f72672f626173696369732f636f72652f646570656e64656e7473) ](https://packagist.org/packages/basicis/core "Dependents") [ ![](https://camo.githubusercontent.com/f95c069f24b935ccabf9dc2503b424b5cba5bce444f14e47b4156941417a7899/68747470733a2f2f706f7365722e707567782e6f72672f626173696369732f636f72652f6c6963656e7365) ](#License "MIT license")

Basicis is a library open source, which follows as [PSR's - PHP Standards Recommendations](https://www.php-fig.org/psr), focusing on web applications and rest api's. As the name says, it is made to be basic and direct.

Get Started
-----------

[](#get-started)

 [![](https://raw.githubusercontent.com/basicis/core/master/storage/assets/img/logo.png)](https://raw.githubusercontent.com/basicis/core/master/storage/assets/img/logo.png)

Add library in to you project with Composer

```
composer require basicis/core

```

Or with Git clone

```
git clone http://github.com/basicis/core.git

```

### Bootstrap

[](#bootstrap)

```
#.env.example
### App Settings ###
APP_ENV="dev"
APP_DESCRIPTION="Basicis Framework"
APP_KEY="APP_KEY_HERE"
APP_TIMEZONE='America/Recife'
#APP_LOG_MAIL="im@example.me"

# For MySQL databases
#DB_DRIVER="pdo_mysql"
#DB_HOST="127.0.0.1"
#DB_PORT=3306
#DB_NAME="dbname"
#DB_USER="user"
#DB_PASS="userpass"
#DATABASE_URL="${DB_DRIVER}://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}"

# For Sqlite database
DB_DRIVER="pdo_sqlite"
DB_PATH="path/to/scheme.db"
```

```
//config/app-config.php
require_once "../vendor/autoload.php";
use Basicis\Basicis;

/** Loading Enviroment variables */
Basicis::loadEnv();

/**
 * $app variable
 * Create an instance of Basicis\Basicis and setting arguments
 * @var Basicis $app
 */
$app = Basicis::createApp(
    [
      "server" => $_SERVER,
      "files" => $_FILES,
      "cookie" => $_COOKIE,
      //"cache" => true, //defalut false
      /*
      Default token params
      "token" => [
        "iss" => APP_DESCRIPTION | "",
        "expiration" => "+30 minutes",
        "nobefore" => "now",
      ]
      */
    ]
);

/**
 * Setting Controllers definitions
 */
$app->setControllers([
  //Key required for use in direct calls via Basicis App instance
  // Ex: $app->controller("keyContName@method", [object|array|null] $args)
  "home" => "App\\Controllers\\Home",
  "storage" => "App\\Controllers\\Storage",
  "example" => "App\\Controllers\\Example",
  "user" => "App\\Controllers\\User",
  //"App\\Controllers\\Storage",
  //...
]);

/**
 * Setting Middlewares definitions
 */
//Before route middlweares
$app->setBeforeMiddlewares([
  //key no is required
  new App\Middlewares\BeforeExample,
  // new App\Middlewares\Foo
  //...
]);

//Route middlweares
$app->setRouteMiddlewares([
  //only here, key is required
  "example" => new App\Middlewares\Example,
  "development" => new App\Middlewares\Development,
  "guest" => new App\Middlewares\Guest,
  "auth" => new App\Middlewares\Auth,
  //...
]);

//After route middlweares
$app->setAfterMiddlewares([
  //key no is required
  new App\Middlewares\AfterExample
  //new App\Middlewares\Bar
  //...
]);

/**
 * Return the Basicis $app instance created for be imported and run on public/index.php file
 */
return $app;
```

```
//public/index.php

//Basicis $app configuration and bootstrap
$app = require_once "../config/app-config.php";

//Run Basicis $app
if ($app instanceof Basicis\Basicis) {
    $app->run();
    exit;
}
exit("Error on Start Basicis framework application!");
```

Documentation
-------------

[](#documentation)

Link to Documentation [here](https://basicis.github.io/core/).

License
-------

[](#license)

The Basicis Core library is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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 ~104 days

Total

2

Last Release

1864d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/039f9f1cd2712e33bb7e7c25e2994d97ddb8590e5c4de86169aea33356d61b1f?d=identicon)[messiasdias](/maintainers/messiasdias)

---

Top Contributors

[![messiasdias](https://avatars.githubusercontent.com/u/35404122?v=4)](https://github.com/messiasdias "messiasdias (156 commits)")

---

Tags

phppsr-11psr-15psr-4psr-7psrphplibrarylibBasicis

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[symfony/symfony

The Symfony PHP framework

31.4k86.9M2.2k](/packages/symfony-symfony)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M517](/packages/shopware-core)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M712](/packages/sylius-sylius)

PHPackages © 2026

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