CodKep - lightweight web framework

Overview

CodKep Logo

CodKep - Lightweight web framework

CodKep is a lightweight web framework written in PHP. It has a modular design and use hook system for easy extend the core functions. Although the working of base api was inspired by the Drupal CMS (version 7), the CodKep does not contains or use any codes from Drupal, it's built on own codebase. (Written from scratch) It's designed to build very database active sites, so it has a rich set of form generation tools.

Install on bare machine

Note: The github repository contains the "sys" directory.

Steps to install

#Step 1: The CodKep needs a php enabled webserver to run.

$ sudo apt-get install -y apache2 libapache2-mod-php php-gd php-mysql php-pgsql php-apcu 
$ sudo a2enmod rewrite 
$ cd /var/www/html

#Step 2: Copy the CodKep files in the webserver root's "sys" directory:

/var/www/html$ git clone https://github.com/hyper-prog/codkep.git sys

#Step 3: Make a symlink to sys/index.php

/var/www/html$ ln -s sys/index.php index.php

In case the php is enabled you shoud see the CodKep's open page in your browser. The documentation is also available there.

Docker images

Available with Debian and Apline linux with apache webserver on: Docker hub:

Downloadable (pullable) image names:

hyperprog/codkepdebian
hyperprog/codkepalpine

To run a pure CodKep container and expose to port 80 (For example to read the newest documentation)

$ docker run -t -p 80:80 hyperprog/codkepalpine

Settings for webservers

NGINX config sample with cleanurl support:

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

    server_name sandbox.example.com;

    root /var/www/mypage;
    index index.php;

    location / {
        try_files $uri @rewrite;
    }

    location @rewrite {
        rewrite ^ /index.php;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        # For php5:
        #fastcgi_pass unix:/var/run/php5-fpm.sock;
        # For php7:
        fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
    }
}

Apache 2.X config with cleanurl

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName sandbox.example.com
    DocumentRoot /var/www/mypage
    <Directory /var/www/mypage/>
        DirectoryIndex index.php
        AllowOverride None
        Options -Indexes +FollowSymLinks

        #On apache 2.2
         Order allow,deny
         allow from all
        #On apache 2.4
         Require all granted

        RewriteEngine on
        RewriteBase /
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php [L]
    </Directory>
</VirtualHost>

If you use apache you can put the rewrite rules into .htaccess file:

DirectoryIndex index.php
Options -Indexes

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L]

Author

The CodKep is written by Peter Deak (C) [email protected] , License GPLv2

You might also like...
Lightweight PHP wrapper for OVH APIs. That's the easiest way to use OVH.com APIs in your PHP applications.
Lightweight PHP wrapper for OVH APIs. That's the easiest way to use OVH.com APIs in your PHP applications.

This PHP package is a lightweight wrapper for OVH APIs. That's the easiest way to use OVH.com APIs in your PHP applications.

A lightweight SQL generation library.

Atlas A lightweight SQL builder library without any query execution or database connection requirements. The primary goals of this package are: To pro

Lightweight library that eases using components built for ReactPHP in a traditional, blocking environment.

clue/reactphp-block Lightweight library that eases integrating async components built for ReactPHP in a traditional, blocking environment. ReactPHP pr

Pagekit is a modular and lightweight CMS built with Symfony components and Vue.js.
Pagekit is a modular and lightweight CMS built with Symfony components and Vue.js.

Pagekit Pagekit is a modular and lightweight CMS built with Symfony components and Vue.js. Homepage - Learn more about Pagekit Documentation - User an

A lightweight mulit-process helper base on PHP.
A lightweight mulit-process helper base on PHP.

workbunny/process 🐇 A lightweight multi-process helper base on PHP. 🐇 简介 这是一个基于ext-pcntl和ext-posix拓展的PHP多进程助手,用于更方便的调用使用。 快速开始 composer require work

A lightweight queue based on Redis Stream for webman plugin.
A lightweight queue based on Redis Stream for webman plugin.

workbunny/webman-rqueue 🐇 A lightweight queue based on Redis Stream for webman plugin. 🐇 A lightweight queue based on Redis Stream for webman plugin

Web Site developed for the subject of Web Development 2

Trabalho - DW2 Web Site developed for the discipline of Web Development 2. It has been developed to simulate a FIFA World Cup's system where you can C

This project processes a small database with php all on a web server. This project uses XAMPP to run the web server and the database.

PHP-introduction This project processes a small database with php all on a web server. This project uses XAMPP to run the web server and the database.

Surftimer-Web-Stats is Web with surftimer statistics.

Surftimer-Web-Stats v2 Surftimer-Web-Stats is Official Web with statistics for Surftimer-Official. Features: Dashboard with TOP players and recent Rec

Releases(v1.255)
A lightweight framework-agnostic library in pure PHP for part-of-speech tagging

N-ai php pos tagger A lightweight framework-agnostic library in pure PHP for part-of-speech tagging. Can be used for chatbots, personal assistants, ke

Giorgio Rey 8 Nov 8, 2022
KodExplorer is a file manager for web. It is also a web code editor, which allows you to develop websites directly within the web browser.

KodExplorer is a file manager for web. It is also a web code editor, which allows you to develop websites directly within the web browser.

warlee 5.5k Feb 10, 2022
PHP Lightweight Message Bus supporting CQRS.

Prooph Service Bus PHP 7.1+ lightweight message bus supporting CQRS and Micro Services Important This library will receive support until December 31,

null 440 Nov 20, 2022
Lightweight abstraction layer for payment gateways

Slickpay is lightweight abstraction layer for payment gateways. Documentation Documentation for Slickpay can be found on official website. Licence The

Slickpay 31 Oct 26, 2021
A lightweight php class for formatting sql statements. Handles automatic indentation and syntax highlighting.

A lightweight php class for formatting sql statements. Handles automatic indentation and syntax highlighting.

Doctrine 1.4k Dec 29, 2022
AlphaID Helper - Basic, Simple and Lightweight

AlphaID Helper - Basic, Simple and Lightweight

Hung Nguyen 1 Oct 18, 2021
You have just downloaded "Messenger-app" [A lightweight, minimalistic real-time chat application]

MESSENGER-APP You have just downloaded "Messenger-app" [A lightweight, minimalistic real-time chat application] Setup To get it working, follow these

Chr1st0ph3r SAB 1 Oct 29, 2021
Xr - Lightweight debug server utility built on ReactPHP.

XR ?? Subscribe to the newsletter to don't miss any update regarding Chevere. XR is a dump server utility built on top of ReactPHP. Features ✨ Dump si

Chevere 195 Dec 17, 2022
meterN is a lightweight set of PHP/JS files that make a " Home energy metering & monitoring " solution.

meterN - Home energy monitor - (PHP/JS Energy Metering & Monitoring) What can meterN do for you ? meterN is a lightweight set of PHP/JS files that mak

Jean-Marc Louviaux 4 Nov 30, 2022
LunarBB is a simple to use, lightweight and accessible Bulletin Board System developed in PHP

LunarBB - Simple Bulletin Board System LunarBB is a simple to use, lightweight and accessible Bulletin Board System developed in PHP. This Webapplicat

Webcodingcafe 2 Feb 7, 2022