Coder Social home page Coder Social logo

chsxf / mfx Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 0.0 510 KB

MFX is a PHP micro-framework (hence "MFX"), suitable as the core of any regular website or API

Home Page: https://github.com/chsxf/mfx/wiki

License: MIT License

PHP 96.01% CSS 0.24% JavaScript 1.18% Twig 2.57%
micro-framework pdo php php81 twig

mfx's Introduction

Hi there ๐Ÿ‘‹

๐Ÿ”ญ Currently working as a Lead Developer Unity C# on Crying Suns and some unannounced projects at Alt Shift

๐Ÿ I've been an Apple user for a long time and I am exploring the many frameworks you can find in the Apple ecosystem.

๐Ÿ˜ I'm also an experienced PHP developer (and probably a little overprotective of our beloved language)

๐Ÿ“ซ You can also reach me on Mastodon, Twitter, Medium or LinkedIn

๐Ÿ”– There's also my personal devlog

My GitHub Stats

My GitHub Language Stats

mfx's People

Contributors

chsxf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mfx's Issues

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

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

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.

Export API Reference

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

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

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.