slim-flex/core

Slim-Flex is a PHP micro-framework that helps you quickly and easily write web applications and APIs. Based on Slim Framework


Keywords
framework, api, micro, router, slimflex
License
MIT

Documentation

Potara - PHP

Potara is a PHP micro framework, based on Slim, which helps you organize your code, both in development and maintenance. With Potara you can create web applications and APIs, from the simplest to the most complex, always maintaining a healthy code.

Prerequisites

  • PHP >= 7.0 (I recommend using do 7.2)
  • Composer
  • GIT (suggestion, always version and your code)

Installing

$ composer require potara/potara
$ composer install

Configuration

index.php

require __DIR__ . './../vendor/autoload.php';

use Potara\Potara\Kernel;

$confKernel = [
    'file_conf'    => 'yaml',
    "cache_module" => false
];

Kernel::run($confKernel);

kernel.php settings

key type default description
root string $_SERVER['DOCUMENT_ROOT'] Project folder
storage string $_SERVER['DOCUMENT_ROOT'] . './../storage/ Folder where the cache will be stored and log
conf string $_SERVER['DOCUMENT_ROOT'] . './../conf/' Folder where the configuration files are stored
file_conf string php, yaml ou yml Configuration file extension
modules array [app] Folder where the modules are
cache_module bolean false Save the list of cached modules?

Authors

  • Bruno Lima - Initial work - GitHub

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Sponsors

JetBrains

Security

If you discover security issues, please email security@potara.org instead of using the problem tracker.