/phanton

Modern PHP sample framework built on Laracast.

Primary LanguageJavaScript

phanton

Features

Routing:

$router->get('', 'PagesController@home');
$router->post('posts', 'PostsController@store');

Database connection:

Connection::make($config = App::get('config')['database'])

Query builder:

App::get('database')->selectAll('posts', 'Post');
App::get('database')->insert('posts', [
   'title' => $_POST['title']
]);

Namespaces

namespace Phanton\Core;

MVC Architecture

ES6+ Features and SCSS support

  • Webpack
  • Webpack-cli

How to run it?

composer install
npm install
php -S localhost:2808