PHPackages                             basicis/basicis - 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. [Framework](/categories/framework)
4. /
5. basicis/basicis

ActiveProject[Framework](/categories/framework)

basicis/basicis
===============

Basicis PHP Framework - Project

v1.0-alpha(5y ago)010[1 issues](https://github.com/basicis/basicis/issues)[2 PRs](https://github.com/basicis/basicis/pulls)MITPHPPHP &gt;=7.3|&gt;=8.0

Since Feb 1Pushed 2y agoCompare

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

READMEChangelog (1)Dependencies (4)Versions (4)Used By (0)

Get Started
===========

[](#get-started)

 [![](storage/assets/img/logo.png)](storage/assets/img/logo.png)

 [ ![](https://camo.githubusercontent.com/a10b50cceea4df3d6eb4254bb12e54802c8c7bd265b6b73a4ca4cf0da9fa7cbb/68747470733a2f2f706f7365722e707567782e6f72672f626173696369732f626173696369732f76657273696f6e) ](https://packagist.org/packages/basicis/basicis "Latest stable Version") [ ![](https://camo.githubusercontent.com/4d248512d3da709486c537149410e089c8195faa90916051aa30a58df0116099/68747470733a2f2f706f7365722e707567782e6f72672f626173696369732f626173696369732f646f776e6c6f616473) ](https://packagist.org/packages/basicis/basicis "Total Downloads") [ ![](https://camo.githubusercontent.com/e794e0ef2a461b681634916e4c01594f5aba076a80d7f4cc23844e7c2a0ec6b1/68747470733a2f2f706f7365722e707567782e6f72672f626173696369732f626173696369732f646570656e64656e7473) ](https://packagist.org/packages/basicis/basicis "Dependents") [ ![](https://camo.githubusercontent.com/1800fd38fc6c4a642f29be1c28774b6eb2b2ef41ac6667d587941ada443b348a/68747470733a2f2f706f7365722e707567782e6f72672f626173696369732f626173696369732f6c6963656e7365) ](#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.

Create a new project with Composer:

```
composer create-project basicis/basicis
```

Case, could not find package basicis/basicis with stability stable use:

```
composer create-project basicis/basicis  -s dev
```

Or with Git clone

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

### Bootstrap

[](#bootstrap)

```
#.env.example
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/basicis/).

License
-------

[](#license)

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

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

1933d 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 (110 commits)")

---

Tags

psrpsr-15psr-2psr-4psr-7psrphpframeworkprojectBasicis

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

PHPackages © 2026

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