项目作者: davidgolding

项目描述 :
A minimalist microframework for PHP 7+
高级语言: PHP
项目地址: git://github.com/davidgolding/silential.git
创建时间: 2020-05-06T23:58:15Z
项目社区:https://github.com/davidgolding/silential

开源协议:MIT License

下载


Silential

Silential is a minimalist microframework for PHP 7+. Start with core functions that provide a standard request/response cycle without forcing routing conventions or requiring a large collection of supporting libraries. Scale up as you need. Intended for small projects or narrow use cases.

Philosophy

Minimalism and lightweight to support a high level of customization. Libraries and dependencies should be made as optional as possible, allowing for scalable architecture.

Installation

Place the silential folder on your webserver. Done.

Usage

In an index.php or similar file, run:

  1. <?php
  2. require 'libraries/Core.php';
  3. echo libraries\Controller::run();
  4. ?>

Then in a controllers\AppController.php file, capture a default request:

  1. <?php
  2. namespace controllers;
  3. class AppController {
  4. public static function index($args = []) {
  5. return $args['response']->render('Hello World');
  6. }
  7. }
  8. ?>

License

MIT