Giter Club home page Giter Club logo

one-php-framework's Introduction

##ONE PHP Minimalist MVC Framework. Only 1 file (Easy readable). Not MVC required. Ready to go.
Perfect fit in small projects and web services, only use what you need as you want.
Keep your projects simple. ####Features: #####1- Route system (And generator for views) #####2- Easy and clean manage (GET, POST, PUT, DELETE) requests #####3- Native localizations by URL (Available in controller and views) #####3- Response (+load Views) #####4- Inspired in Symfony and ExpressJS
#####5- Zero config - Agile development

###Add to your project: 1-Install with Composer or download zip:

composer create-project julces/oneframework

2- Include the one_framework.php in your project and copy the .htaccess file in the root folder for use the index.php as your front controller.
3- Initialize the class, add some routes-action with get. (See the example bellow).
4- Run listen.

####Basic Usage:

//index.php file    
require_once('one_framework.php');  
$app = new OneFramework();      

$app->get('/',function() use ($app){//Action
    echo 'Hello world';     
});     
$app->listen();

####Respond all Request (if no match)

$app->respond(function() use ($app){
    echo 'Sorry this page does not exist';
});

##Read the Documentation

###Contribute, is easy! Found a bug? Have a good idea for improving One Php Framework?
Want to help with the documentation or translations?
Let us know, fork the project, created an issue or contact us.

Follow @juliomatcom http://oneframework.net/

one-php-framework's People

Contributors

juliomatcom avatar

Watchers

Alberto Hernández avatar James Cloos 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.