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.
{
"require": {
"rp/higgs": "dev-master"
},
"autoload": {
"psr-4": {
"App\\": "app/"
}
}
}
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.
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
require_once 'vendor/autoload.php';
$application = new \RP\Higgs\Application();
$application->boot();
namespace App\Controller;
use RP\Higgs\Controller\AbstractBaseController;
class PageController extends AbstractBaseController
{
public function indexAction()
{
$this->view->assign('helloWorld', 'Hello World');
}
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 …