2017 © Pedro Peláez
 

library session

Soli Session

image

soliphp/session

Soli Session

  • Tuesday, May 22, 2018
  • by ueaner
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Soli PHP Web

Soli Web Component., (*1)

安装

使用 composer 进行安装:, (*2)

composer require soliphp/web

使用

如下我们编写 index.php 文件,内容为:, (*3)

<?php

// 默认控制器命名空间
namespace App\Controllers;

include __DIR__ . "/vendor/autoload.php";

class IndexController extends \Soli\Controller
{
    public function index()
    {
        return 'Hello, Soli.';
    }
}

$app = new \Soli\Web\App();

// 处理请求,输出响应内容
$app->handle()->send();

$app->terminate();
  1. 使用 php -S 启动 webserver
php -S localhost:8000
  1. 浏览器访问 http://localhost:8000/,即可看到如下信息:
Hello, Soli.

License

MIT License, (*4)

The Versions

22/05 2018

dev-master

9999999-dev https://github.com/soliphp/session

Soli Session

  Sources   Download

MIT

The Requires

 

by Avatar ueaner

session soliphp

22/05 2018

v1.1

1.1.0.0 https://github.com/soliphp/session

Soli Session

  Sources   Download

MIT

The Requires

 

by Avatar ueaner

session soliphp

26/02 2018

v1.0

1.0.0.0 https://github.com/soliphp/session

Soli Session

  Sources   Download

MIT

The Requires

 

by Avatar ueaner

session soliphp