Skip to content

Instantly share code, notes, and snippets.

@gonatan
Last active August 20, 2019 18:09
Show Gist options
  • Select an option

  • Save gonatan/f9eaa97414a747e51ef67ea8e2e89963 to your computer and use it in GitHub Desktop.

Select an option

Save gonatan/f9eaa97414a747e51ef67ea8e2e89963 to your computer and use it in GitHub Desktop.
Fatfree "Hello world!" example
mkdir my-app && cd my-app
composer require bcosca/fatfree-core
echo "<?php require 'vendor/autoload.php';" > index.php
echo "Base::instance()->config('config.ini')->run();" >> index.php
echo "[routes]" > config.ini
echo "GET /=Controller->index" >> config.ini
echo "<?php class Controller {public function index($f3) {echo 'Hello fatfree!';}}" > Controller.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment