Hi! I am Anirudh Singh and I am writing this to ask for your help in a PHP Framework named CoreApp developed by me.
I want you to work with the framework and help me out to fix bugs and add additional features.
The goal of this framework is to be minimal. It's just 11.3KB and has a lot of features making Web Development quite easy.
A simple CRUD Application with authentication can be build within an hours.
I want your support to make it more powerful and easy to use.
Link : https://github.com/violentanirudh/coreapp
Building a minimal app in CoreApp
# APACHE .htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]
# NGINX nginx.conf
try_files $uri /index.php;
<?php
require __DIR__ . '/CoreApp.php';
// Creating App
$app = new CoreApp();
// Functions
function home() {
echo "Hello, World!";
}
function blog($id) {
echo "Hello, World! Blog : $id";
}
// Adding routes
$app -> add('GET', '/', 'home');
$app -> add('GET', '/blog/:id', 'blog');
$app -> run();
Top comments (0)