sibra-soft / light-wine-framework
用于运行网站和Web应用的PHP Web框架
1.0.13
2024-04-13 17:07 UTC
Requires
- bshaffer/oauth2-server-php: ^1.11
- dragonmantank/cron-expression: ^3.1
- phpmailer/phpmailer: ^6.5
- rct567/dom-query: ^1.0
- tedivm/jshrink: ^1.4
Requires (Dev)
This package is auto-updated.
Last update: 2024-09-18 18:58:57 UTC
README
LightWine 框架
LightWine 框架是一个PHP框架,可用于创建网站和Web应用。该框架包含多种有用的函数和类,使得创建网站变得简单。
入门指南
特性
应用程序配置文件
以下是一个使用该框架创建的网站/Web应用的配置文件示例:
{ "Name": "Exmaple Project", // The name of the project "Domain": "exmaple.com", // The main domain name of your website/webapplication, "Connections": { // Here you can add connectionstring of your databases }, "CacheFolder": "~/cache/", // Specifies the location of the cache folder "Environment": "dev", // Specifies the current enviroment (dev, test or live) "Tracing": false, // Enables the tracing of the framework for easy debugging "LogTraffic": true, // Logs website visitor details to a file "CreateDebugLog": false, // Creates all log entries including debug log entries "LogDatabase": false, // Enables logging to the database instead of a file "GzipEncode": true, // Enables gzip compression for all content provided by the framework "MailHeaderTemplateId": 0, // Used to specify the default mail header template "MailFooterTemplateId": 0, // Used to specify the default mail footer template "LogAllMail": true, // If enabled, all send mail will be logged to a table "Smtp": { "Host": "smtp.example.com", // Hostname of your smtp server "Port": 587, // Port number of your smtp server "Username": "example@example.com", // Username of your smtp server "Password": "", // Password of your smtp server "FromName": "Exmaple", // The name you want to use to send the mail "FromAddress": "example@example.com" // The emailaddress you want to use to send the mail }, "scheduler": { "token": "" // Enter the token that must be used to run the scheduler from cronjobs } }