Giter Club home page Giter Club logo

mist's Introduction

Mist

Custom PHP Framework

  • 0 Composer Dependencies
  • API & Views Support
  • Dependency Injection
  • Migrations
  • Middleware
  • JWT Authentication
  • Models: Select, Where, Update & Insert Methods

Root folder structure:

  • /app - place for frontend framework
  • /docker - folder for docker related files, e.g. Dockerfiles
  • /public - folder containing index.php entrypoint into app and other static assets
  • /src - folder containing framework

Framework structure:

  • /Core - folder containing core classes for application
    • Container.php - class used to resolve depencies for classes and methods
    • Core.php - core framework class extends container
    • Database.php - class used for interacting with database (extends PDO)
    • gateway.php - gateway file determins with list of routes to use for a request and call all neccessary middlewares
    • Request.php - request class, constructed from request
    • Router.php - router class
  • /Controllers - folder containing controllers
    • Controller.php - abstract class containig core functionality for all controllers
  • /Middlewares - contains all middlewares
    • Middleware.php - abstract class that should be extended by all middlewares
  • /Migrations - contains all migrations scripts
    • Migration.php - class for running/managing migrations
  • /Models - folder for storing models
    • Model.php - abstract class containig core functionality for all models
  • /Repositories - contains all repositories
    • Repository.php - abstract class containig core functionality for all repositories
  • /Services - folder containig all services
    • Service.php - abstract class containig core functionality for all services
  • /Helpers - contains all helper functions/classes
    • globals.php - contains functions that shoulde be globally available
    • array.php - contains helper function for working with arrays
  • /routes - folder containig route list
    • api.php - list of api routes
    • view.php - list of view/web routes
  • /config - folder containig config files
    • container.php - config file for container
    • database.php - config file for database connection
    • middlewares.php - config file for middlewares

mist's People

Contributors

kogoshvili avatar

Watchers

 avatar

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.