mobles/athos-foundation

Athos-Foundation

0.1.3 2024-06-16 21:31 UTC

This package is auto-updated.

Last update: 2024-09-16 22:00:27 UTC


README

Athos-Foundation 是一个轻量级的 PHP 库,可以帮助您轻松设置一个具有以下功能的简单 Web 应用程序:

  • 会话管理
  • 数据库管理
  • 用户认证
  • 模板渲染

安装

您可以直接下载源代码,或使用 composer 安装

composer require mobles/athos-foundation

Smarty

Athos-Foundation 使用 Smarty 来渲染模板。如果您通过 composer 安装 Athos-Foundation,它将自动安装 Smarty,否则,您可以手动安装 Smarty

composer require smarty/smarty "^3.1"

设置

samples 目录包含您的 Web 应用程序的基本设置,包括演示模块 home。将这些文件和目录复制到您的 Web 应用程序的根目录,然后您就可以开始使用了!

此外,sample_database.sql 包含了用于用户账户和会话的示例数据库结构。

一旦您设置了您的 Web 应用程序,您可以删除 samples 目录。

许可证

Athos-Foundation 是开源软件,使用 MIT 许可证 许可。