Skip to content

WebFiori Framework v2.1.0 Stable

Compare
Choose a tag to compare
@usernane usernane released this 30 Apr 23:34

Change Log

  • Refactoring

    • Renamed class WebFiori to WebFioriApp.
  • New Features

    • Allow the developer to set custom sessions storage engine using the constant WF_SESSION_STORAGE.
    • Added new class: WebPage. This class is used to build web pages instead of using the class Page.
    • Added the class AppConfig which holds all different global configurations.
    • Now the framework will render web pages which uses the class WebPage automatically.
    • Added support for new language class creation when a new display language is added.
    • Added a way to allow the developer to register database table classes using the method DB::register()
  • Added database session storage implementation.

  • Deprecations and Removals:

    • Removed the class Config, MailConfig and SiteConfig.
    • Deprecated the class Page. Will be removed next release.
  • Other Changes:

    • Added new method to the class File which can be used to append data (File::append()).
    • Updated all themes to depend on the class WebPage instead of using the class Page.

Installation

Using Composer

To install the latest release using composer, use the following command:
php composer.phar create-project --prefer-dist "webfiori/framework" <project-folder>

Replace <project-folder> with the name of the folder that will hold your project.

Using Attached File

Optionally, you can download the file webfiori-v2.0.0.zip which is part of this release if you don't want to use composer in installation. Once downloaded, extract the content of the file in your project folder.

Running Using PHP's Built-in Server

To run the project, open command line interface and navigate to <project-folder>/src. While inside the folder, run the following command:
path/to/php.exe -S localhost:8080 -t public
In your web browser, open http://localhost:8080 . Note that if the framework is installed using attached release, no need to add the src folder. Just navigate to <project-folder>

Wondering what is WebFiori Framework? Check following link for more information: https://webfiori.com/learn/introduction

Learning Resources

If you are new to the framework and would like to learn how to use it, you can check at https://webfiori.com/learn .