Git Product home page Git Product logo

mfx's Introduction

About MFX

MFX is a PHP micro-framework (hence "MFX"), designed to be used as the core of any regular website or API.

Originally created as a project basis for Cheese Burgames, a now-defunct french independant video game studio. The first version, previously called php-micro-framework was introduced in 2013 and matured in 2016. With time, MFX has evolved into a complete framework for external developments.

System Requirements

  • PHP 8.1+ with enabled gettext extension
  • Apache with mod_rewrite module enabled
  • Any database management system compatible with PDO (MySQL, MariaDB, PostgreSQL, ...) if you plan to use database storage (see PDO documentation for more information)

Dependencies

Getting Started

Documentation is available in the wiki

Go to this page to start using MFX.

Support

Development on MFX is still active. Even though the project is production-ready, new features and bugfixes will come eventually.

However, support is not guaranteed in any way. Pull requests or issues are welcomed but you may wait for some time before getting any answer.

mfx's People

Contributors

chsxf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mfx's Issues

Export API Reference

Export API Reference as part of the wiki (update the doc generator to update the wiki directly)

Nginx support

Make sure that Nginx is supported. The framework has only been tested against Apache for now.

Add a setup script

Currently, setting up the framework requires a lot of manual operations. This feature is aiming at providing an automated bootstrap script to simplify the process.

Add more stringent checks to Config loading

  • Prevent loading multiple times the same domain
  • Check domain names (must be single-level properties)
  • Check property names (only valid characters)
  • Calling load on base domain if already loaded

Allow views to answer with status codes other than 200

Allow views to answer with status codes other than 200

In CoreManager.php, this part is weird:

switch ($reqResult->type()) {
  // Views
  case RequestResultType::VIEW:
    if ($reqResult->statusCode() != 200) {
      self::dieWithStatusCode($reqResult->statusCode());
    }

Broken command-line execution

Running php entrypoint.php GitHubStats.badge makes MFX identify incorrectly the route as trypoint.php/GitHubStats.badge

Update the documentation to remove the need for the -- separator

Update Framework Reference

  • Auto-loading
  • Core Manager
  • Request Management
    • Routes and Providers
    • Lifecycle of a Request
    • Request Results
    • Customizing the Behavior of a Route
    • Custom Routers
  • Configuration Directives
  • Modules
    • Command-Line Manager
    • Configuration Manager
    • Data Validator (Fields, Filters, Templating)
    • Database Manager
    • Database Updater
    • Error Manager
    • Fake Protocols
    • Localization Manager
    • Pagination Manager
    • Profiler
    • Script Manager
    • Session Manager
    • Stylesheet Manager
    • User Management

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.