GithubHelp home page GithubHelp logo

tommy131 / owoframe Goto Github PK

View Code? Open in Web Editor NEW
63.0 6.0 8.0 1.65 MB

A lightweight MVC framework for PHP

Home Page: https://www.owoblog.com

License: Apache License 2.0

PHP 95.77% Batchfile 0.46% HTML 3.29% Shell 0.49%
mvc php-framework php-web-apps website php7 php72 php73 php74 owoblog

owoframe's Introduction

OwOFrame

CodeFactor License Learn More

OwO! OwOFrame is developed based on the MVC (Model-Views-Controller) model. The standard of the framework is drawn from the current popular PHP-MVC framework to a certain extent. This project is only my personal practice project.

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

Donation: https://owoblog.com/donation/

中文版简介请点这里

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

  • !!!IDE Friendly!!! All comments display nicely in Visual Studio Code
  • Application This framework is a multi-application coexistence framework, and the current application is identified by HTTP_URI
  • Console Support some operations in the terminal through CommandLine
  • Config Configuration file parsing class
  • EventManager Event Manager (hook method)
  • Exception Error and exception capture and Stack output
  • ModuleLoader Module loader (Application independent and flexible management, in global mode)
  • Language Custom language pack support (rewriting)
  • Logger Support the most basic logging
  • Redis Support basic Redis operations (rewriting)
  • Route Route analysis/management (personalized route binding settings)
  • Template Back-end rendering template (basic functions have been completed, and advanced functions have been developed quickly o( ̄▽ ̄)o)
  • TextColorOutput Support ANSI control code output color in CMD & Shell
  • WMI WMI operation class written for Windows system
  • Cookie A common cookie processing class
  • Session A common Session processing class
  • EmptyAppGenerator One-click generation of new application templates
  • FileUploader File upload class support
  • systemFunctions A file function that integrates the bottom layer of the system (see the source code for details)
  • httpFunctions A file function that integrates the bottom layer of HTTP (see the source code for details)

Third Party Resources

How to use?

§1 Installation

  • First way can use command git clone https://github.com/Tommy131/OwOFrame.git to clone the repository from Github to location.
  • Or you can use the second way with command composer create-project tommy131/owoframe -s dev to create the repository to location.

§2 Next Step

After open CMD in Windows or Shell in Linux, use command cd owoframe && composer install to change work path on owoframe.
If you used composer to install this repository, you may not to run the command from the top.

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 owo [command].

Note: The premise of using the owo command directly is that the root directory path of the current project folder has been set in the system's global environment ($PATH) variables.

Show

Statement

© 2016-2023 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

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.