DEV Community

violentanirudh
violentanirudh

Posted on • Edited on

CoreApp : Minimal PHP Framework

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;
Enter fullscreen mode Exit fullscreen mode
<?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();
Enter fullscreen mode Exit fullscreen mode

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More