Fastest ๐, very easy to use ๐ฎ, and free ๐ API building framework for PHP
- index.php
- .htaccess
- app/app.php
- app/functions.php
- app/main.php
- system/autoload.php
- system/core/basetypes.php
- system/core/database.php
- system/core/medoo.class.php
- system/core/micro.php
37KB uncompressed package
Fastest framework even
Easy to use
Free and open source
- Download using git
$ git clone https://github.com/Whilend/Fast-Framework.git
- Configure database and more index.php
<?php
define("SUPERFAST", __DIR__.'/');
define("DEBUG_MODE", TRUE); // Enable (Disable) debug mode
$config = Array(
'db' =>
Array(
'database_type' => 'mysql', // Database driver
'database_name' => 'test', // Database name
'server' => '127.0.0.1', // Database server
'username' => 'root', // Username
'password' => '', // Password
'debug_mode' => DEBUG_MODE
)
);
...
- Handle some methods from main.php
<?php
$app->method('/login', function ($request, $response, $app) {
// Called when if user sent POST to /login
$result = $app->db->select('users', '*', array(
'username' => $request->post('username'),
'password' => md5($request->post('password'))
))->first();
$response->json->status = $result != NULL;
$response->json->profile = $result;
$response->write_json();
});
Need more documentation? Then star, and share this repo with your friends