Last active
August 20, 2019 18:09
-
-
Save gonatan/f9eaa97414a747e51ef67ea8e2e89963 to your computer and use it in GitHub Desktop.
Fatfree "Hello world!" example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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