sibra-soft/light-wine-framework

PHP web framework for running websites and webapplications

1.0.13 2024-04-13 17:07 UTC

README

68747470733a2f2f7777772e73696272612d736f66742e6e6c2f696d616765732f6c696768745f77696e655f6c6f676f2e706e67

LightWine Framework

The LightWine framework is a PHP framework that can be used for creating websites and webapplications. The framework has various useful functions and classes that make it easy creating websites.

Getting started

Features

Application configuration file

Below you find a example of a configuration file for a website/webapplication created with the framework

{
  "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
  }
}