/OwOFrame

A very lightweight MVC framework for PHP

Primary LanguagePHPApache License 2.0Apache-2.0

OwOFrame

Open source license : License Learn More

OwO! OwOFrame is developed based on the MVC (Model-Views-Controller) model. The framework's standard formulation draws on ThinkPHP, so the naming rules for some methods seem There are similarities. This repository is just my personal practice repository.

If you think this repository is helpful to you, please give this repository a Star QWQ

What can I do?

OwOFrame is a small framework that I developed using my free time. Of course, there are many shortcomings. The functions currently supported by this framework are listed below:

Basic System Components

  • AppManager Judge the corresponding routing controller by identifying HTTP_URI and assign it to the corresponding Application
  • CommandManager Support some operations through the Command Line method on the CLI
  • ConfigurationParser Configuration Parser
  • EventManager Event Manager(Hooks Module)
  • Exception Error capture and Stack output (I know that advanced frameworks have them and are better than mine QAQ)
  • PluginLoader Plug-in loader (a support method that can be flexibly changed independent of Application)
  • Language Custom languages packages supported
  • LogWriter Support the most basic logging
  • Redis Support basic Redis operations
  • RouterManager Router Manager
  • BetterRouter Better Router (More personalized routing binding settings)
  • Template Back-end rendering template (basic functions have been completed, turtle speed development advanced functions o( ̄▽ ̄)o)
  • TextFormat Support ANSI control code output color in CMD & Shell
  • WMI WMI operation class written for Windows system

Basic Util Components

  • CookieClass A common Cookie class
  • EmptyAppGenerator Generate a new Application template with one click
  • FileUploadClass File upload support
  • Helper An integrated method class (see the source code for details)
  • SessionClass An common Session class

Third Party Resources

How to use me?

At first you need to open CMD or Shell and get in to the root path then use command cd owoframe && composer install to install environment.

Do I need modify my Web configuration (e.g. for Nginx) ?

Yes. The step(s) please see the below:

# Set your web root path to /public (Example);
root /www/owoframe/public;

location / {
    index index.php index.html;
    try_files $uri $uri/ /index.php$is_args$query_string;
}

How to running my Application in CLI-Mode with OwOFrame?

In the OwOFrame, I built the Command Manager. You can customize the registration management of the implementation Commands, and you can also modify the entry file in the CLI-Mode to touch your project requirements. The basically usage will be called in the root path like php owo [command].


Statement

© 2016-2021 OwOBlog-DGMT. Please comply with the open source license of this project for modification, derivative or commercial use of this project.

My Contacts:

Stargazers over time

Stargazers over time