Skip to content

TobyMaxham/yuttamf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yutta MF PHP Framework

Latest Stable Version Total Downloads Monthly Downloads Latest Unstable Version License

The Yutta MF PHP Framework is a simple framework that halps you to write simple web applications or APIs.

Installation

The best way to install Yutta MF is to use the Composer package manager.

$ composer require tobymaxham/yuttamf

With this command Yutta and all required dependencies will be installed. For a list of all dependencies please scroll down.

Usage

Now you can create an index.php file and put the following example.

<?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.

<?php

require 'vendor/autoload.php';

app()->route()->get('/', function() {
    return 'Hello World!';
});

You may quickly test this using the built-in PHP server:

$ php -S localhost:8000

Going to ´http://localhost:8000` will now display "Hello world!".

Dependencies

The Yutta MF PHP Framework includes

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages