Skip to content

jmserra/ynit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YNIT PHP Framework

A really tiny php framework to bootstrap simple projects

Installing

Just download this repository and start working on your app. Yeah, no composer requires here, you can use composer if you like to install dependencies although the idea of this framework is to be as tiny as possible. It already includes a PSR-4 loader which might be good enough for your needs.

You can also download and unzip in a new folder by running:

wget -qO- https://github.com/jmserra/ynit/archive/master.zip | bsdtar -xvf-

Structure

app: your app classes go here. Everything under this folder expects to use the "App" namespace.

app/Controller.php: thats a default controller with a couple of methods you can play with.

app/Console: commands expected to be executed from the console.

public/index.php: this is your front controller, and the place where you define the routes of the app.

Routes

New routes can be added in index.php, all controllers and classes are loaded following PSR-4

Docker

The provided Dockerfile will create a single image with php-fpm and nginx running docker-compose up would start the container and make nginx accessible from http://localhost:8080

Console

Any class under Console folder can be executed from the command line as ./console MyCommand

About

A really tiny php framework to bootstrap simple projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages