Skip to content

testcore-labs/qkit

Repository files navigation

qkit

MIT MIT PHP Composer

A PHP Framework from scratch.

What is it's purpose?

It's a framework aiming to create a fast and easy solution for people that don't want too much crammed in a framework.. under 100kb.

I want a templating engine! I want this and that!

I have already put those here

Deployment

To deploy this project, run:

  composer require

Then get nginx and make sure all of your requests go to /public/index.php as this framework has a router.

nginx conf for example:

server {
        listen 80;
        listen [::]:80;

        root /home/qkit/public/;
        index index.php;

        server_name localhost;

        location / {
         try_files $uri $uri/ /index.php?$query_string;
        }

        location ~ \.php$ {
         try_files $uri =404;
         include fastcgi_params;
         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
         #fastcgi_index index.php;
         fastcgi_pass unix:/run/php/php8.2-fpm.sock;
        }
}

.. and that's it. Dead simple.

Will document more, just go into the core/ folder and you will be able to read it mostly.. public/index.php has examples for routing.

About

A PHP Framework from scratch.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages