定制 district5/slim-s4s 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

district5/slim-s4s

最新稳定版本:0.3.2

Composer 安装命令:

composer require district5/slim-s4s

包简介

District5 Slim Framework 4 Stub

README 文档

README

This library provides Slim Framework 4 utilities for initialising and maintaining both Slim4 JSON based API's and lightweight UI based apps.

Usage

These instructions assume a standard app directory structure:

- app
| - api
| | - routes
| - www
| | - routes
- lib
| - ...
initialiser.php

Set Environment

Setting an environment, which can be accessed by routing apps:

\S4S\Slim4\Factory\AppFactory::setEnvironment(\S4S\Slim4\Enum\Environment::\S4S\Slim4\Enum\Development);

JSON API base App

$base = __DIR__ . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR;

$app = AppFactory::createJsonApi($base . 'api');
$app->run();

UI base App

$base = __DIR__ . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR;

$app = AppFactory::createUI($base . 'www');
$app->run();

统计信息

  • 总下载量: 111
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: mit
  • 更新时间: 2024-05-07