dev-master
9999999-dev
MIT
The Requires
- illuminate/database ^5.3
- vlucas/phpdotenv ^2.4
- symfony/http-foundation ^3.2
- twig/twig ~1.0
- symfony/routing ^3.2
dev-issues/#1
dev-issues/#1
MIT
The Requires
The Yutta MF PHP Framework is a simple framework that halps you to write simple web applications or APIs., (*2)
The best way to install Yutta MF is to use the Composer package manager., (*3)
$ composer require tobymaxham/yuttamf
With this command Yutta and all required dependencies will be installed. For a list of all dependencies please scroll down., (*4)
Now you can create an index.php
file and put the following example., (*5)
<?php // loads the composer autoloader require 'vendor/autoload.php'; // registers a new Yutta Application instance, // where __DIR__ is the root path above the vendor $app = new \Yutta\Application(__DIR__); $app->start();
For lazy developers you wont need to create a new Application instance., (*6)
<?php require 'vendor/autoload.php'; app()->route()->get('/', function() { return 'Hello World!'; });
You may quickly test this using the built-in PHP server:, (*7)
$ php -S localhost:8000
Going to http://localhost:8000` will now display "Hello world!"., (*8)
The Yutta MF PHP Framework includes - the Laravel database extensions (illuminat/database) - the environment loader PHP dotenv (vlucas/phpdotenv) - the Symfony HttpFoundation Component (symfony/http-foundation) - the Twig Template Engine (twig/twig), (*9)
MIT
MIT