Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.
/ higgs Public archive

A tiny MVC framework to help you with small projects that don't need a full fledged framework.

License

Notifications You must be signed in to change notification settings

runepiper/higgs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Downloads License

Higgs

Higgs is a tiny framework to help you with small projects that doesn't need a full fledged framework like Laravel. It has a very basic routing without dynamic parts also know as slugs. It also uses a templating engine called Fluid. It is very powerful yet very universal and easy to learn, because of it's HTML style writing.

composer.json

{
    "require": {
        "rp/higgs": "dev-master"
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/"
        }
    }
}

Getting started

After you created a composer.json file and installed the dependencies you can execute ./vendor/bin/higgs to set up an example config.php, .htaccess and create an empty app/ directory for your controllers and so on.

Directory structure

    app
        Controller
            PageController
        Utility
        Service
        ViewHelpers
    resources
        partials
        layouts
        templates
            Controller
                Action.html
            Page (example)
                Index.html
        stylesheets
        javascripts
        images
    config.php
    index.php
    composer.json

index.php

require_once 'vendor/autoload.php';

$application = new \RP\Higgs\Application();
$application->boot();

PageController (example)

namespace App\Controller;

use RP\Higgs\Controller\AbstractBaseController;

class PageController extends AbstractBaseController
{
    public function indexAction()
    {
        $this->view->assign('helloWorld', 'Hello World');
    }

Why Higgs?

The Higgs Boson also known as the God Particle is an elementary particle in the Standard Model of particle physics. It is smaller than an atomic nucleus and this package has the goal to be as small as possible. Kinda …

About

A tiny MVC framework to help you with small projects that don't need a full fledged framework.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages