LightPHPFramework

Configuration

Introduction

LightPHPFramework (LPF) is built with an easy to use configuration

Configuration files are stored inside the config folder. The application's basic configuration is done in /app/config/ and in condition of given environment in the subfolder.

Beside you can also store your own config files in that folder and you can load your customized configuration in your app. > read more.

Framework configuration

This framework provides several configuration files:

Basic settings (default.json)

Key Type Default value Description
default.timezone String Europe/Berlin Set the server timezone
errors.display Boolean true If you run your application on a production system, you should set it to false.
project.name String LightPHPFramework Name of your project or application
project.url String URL of your project or application
project.email String E-Mail address of your project or application
packages.math.tax integer 19 Default tax rate
packages.math.currency string EUR Default currency
security.input_filter array xss_clean Default value
security.output_filter array
template.extension String htm.php File extension of template files,
cache.driver String file Storage Engine for cache. Possible options: "file", "apc", "apcu".
cache.apc.expiration integer 0 Default expiration of cache object for apc/apcu storage backend. 0 = never expire.
cache.apc.cache_id String cache.lpf Suffix to identify apc/apcu cache objects generated by this framework
cache.file.expiration integer 0 Default expiration of cache object for file storage backend. 0 = never expire.
cache.file.cache_id String cache.lpf Suffix to identify file cache objects generated by this framework
cache.file.cache_dir String \/tmp\/cache\/ Path to store cache files. The cache system will always take the App folder as root path. By default: App/tmp/cache/.
cache.file.garbage_collector.interval integer 5 Every x minutes the garbage collector check and delete expired cache files. Set 0 will deactivate automatic garbage collection.
language.driver string file Storage Engine for languages. File or MySQL is currently supported.
language.default_language integer de Default and fallback language.
language.mysql.table string language Table name to store your data.
language.file.language_dir string language Path to store your language files. The language system will always take the App folder as root path. Default: App/language/
mail.content_type string text/html Default content type for mails.
mail.charset string UTF-8 Default mail charset
mail.encoding string 7bit Default mail encoding
mail.eol string LF Default mail linefeed.
mail.template.delimiter.open string {{ Default template delimiter open tag.
mail.template.delimiter.open string }} Default template delimiter open tag.

Database configuration (db.json)

Key Type Default value Description
default.host String Hostname or IP of database server
default.user String Username of database user
default.password string Password of database user
default.database String Databasename of database
default.charset String utf8 Database charset

FTP configuration (ftp.json)

Key Type Default value Description
default.hostname String Hostname or IP of ftp server
default.username String Username of ftp user
default.password string Password of ftp user
default.timeout integer 90 Connection timeout in seconds
default.port integer 21 ftp port
default.passive boolean true enable / disable passive mode
default.ssl_mode boolean false enable / disable ssl mode
default.debug boolean false enable / disable debug mode