Coder Social home page Coder Social logo

esse's Introduction

Esse

MVC in PHP

Features

  • MVC Architecture
  • Supports MariaDB and SQLite
  • Simple Authentication
  • All licenses are MIT at the time of writing (Dec. 2022)

What

This is a PHP PSR-4 Framework - www.php-fig.org/psr/psr-4/

Why

To craft PHP applications you need this style of Framework

This is a Model-View-Controller Application in PHP

It:

  • Creates an entry point
  • Loads php scripts as required
  • Calls a Controller
    • Models data
    • Displays a View

foo

How

  1. Create a composer file
{
  "license": "MIT",
  "minimum-stability": "dev",
  "autoload": {
    "psr-4": {
      "": "src/app"
    }
  },
  "require": {
    "bravedave/esse": "dev-main"
  }
}
  1. update to install files
composer u
  1. install a sample application
mkdir src
cp -r vendor/bravedave/esse/src/app src/app
cp -r vendor/bravedave/esse/www .
  1. Run
cd www
php -S localhost:8080 _mvp.php

the program will run, but there are no users or database

  • a data folder was created in src/data
    1. rename the esse-defaults-sample.json to esse-defaults.json - activates SQLite as the database
    2. create a user in users with a password
    3. logoff
    4. authentication is now required

dive into the app folder and build your app ! etc .. etc..

Credits:

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.