astralicht/content-delivery 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

astralicht/content-delivery

最新稳定版本:v0.2.0

Composer 安装命令:

composer create-project astralicht/content-delivery

包简介

A small and simple PHP MVC framework for content delivery.

README 文档

README

A small and simple PHP MVC framework for content delivery.

Installation

To install, navigate to the latest release and download it from there. Composer is now supported as of October 1, 2024. To install with Composer, run composer create-project astralicht/content-delivery.

Routing

CDF has support for separate HTTP requests (GET, POST, PUT, DELETE, etc.) as long as the request type is explicitly included in the route.

Route Format

There are two types of route formats for CDF:

  1. Route to Controller/Model
"{URI}" => ["{filepath to controller/route/view}", [
    "{HTTP Request Type (GET, POST, etc.)}" => "{Function name in Class}",
], "{Class name (include namespace if present)}", {boolean value but cdf only accepts if this value is true}],
  1. Route to View
"{URI}" => ["{filepath to controller/route/view}", ["{HTTP Request Type (GET)}"]],

Database Support

CDF (as of release Dev-006, subject to testing) now has support for database connections other than mysqli.

Controllers and Models

When creating a new controller or model manually, make sure to include their respective namespaces. (e.g. cdf\Controllers or cdf\Models) Until a command line interface has been created, this will have to be taken note of in case something does not work.

Development Server

To start the PHP's development server, you can type in php cdf serve in your terminal in the correct directory.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-30