PHPackages                             flik/piece-of-cake - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. flik/piece-of-cake

ActiveLibrary[Framework](/categories/framework)

flik/piece-of-cake
==================

Piece of Cake is a basic MVC framework for fast performance.

06PHP

Since Mar 30Pushed 9y ago2 watchersCompare

[ Source](https://github.com/flik/piece-of-cake)[ Packagist](https://packagist.org/packages/flik/piece-of-cake)[ RSS](/packages/flik-piece-of-cake/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

piece-of-cake
=============

[](#piece-of-cake)

New MVC framework with lot of flexibility. Work in progress...

Installation:
=============

[](#installation)

```
composer install

```

Composer detail:

DB Configuration:
=================

[](#db-configuration)

```
//Config/database.php

```

Common Functions:
=================

[](#common-functions)

```
//framework/bootstrap.php

```

Check routes like laravel and cakephp routes:
=============================================

[](#check-routes-like-laravel-and-cakephp-routes)

```
//Config/routes.php
$Route = array(
	'/'      		=> "/home",     // /xapp/home.php
	'/page/smarty'      	=> "page",      // redirect with smarty template engine. /xapp/page.php
    '/post'      		=> "post",
    '/contact'      		=> "contact",
    '/test'      		=> "test",
    '/about'   			=> "User@index",  // /xapp/Controller/UserController.php and action index()
    '/api/v1/auth/token'   	=> "User@login",  // ControllerName@ActionName same like cakephp or laravel
    '/api/test'   		=> "User@testx"

);

```

Form like zend:
===============

[](#form-like-zend)

```
// https://github.com/adamwathan/form for documentation
$frm = new AdamWathan\Form\FormBuilder;

$years = ['1990' => 1990, '1991' => 1991, '1992' => 1992];
$model = json_decode(json_encode(array('full_name'=>'John Doe',
					'bio'=>'',
					'color'=>'',
					'terms'=>'',
					'birth_year' => 1991 ,
					'email'=>'john@example.com',
					'date_of_birth'=> '1985-05-06'
				)));
?>

```

Validation like laravel and record save like cakephp:
=====================================================

[](#validation-like-laravel-and-record-save-like-cakephp)

```
//http://github.com/Wixel/GUMP for documentation
use GUMP as V; // write at top

//example use in UserController.php
$input = $_REQUEST;
$is_valid = V::is_valid($input, array(
                'username' => 'required|alpha_numeric',
		'password' => 'required|max_len,100|min_len,6'
        ));

if ($is_valid === true) {
    // continue
} else {
    return $this->respond($is_valid, 401);
}

//https://github.com/flik/X for documentation
//initializing users table
X::manage('users');
$member = X::where('email', '=', $input['email']);

if (!empty($member))
    $this->respond(['Email already exist!'], 401);

$salt = '10$02afa11535df310febf1d0';
$e = new  PasswordEncryptor_Blowfish();
$encypted_password = $e->encrypt($input['password'], $salt, null);

$data = array();

$data['email'] = $input['email'];
$data['password'] = $encypted_password;
X::save($data);

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc1a64396a93deefc614cf23851c748d281f41081b23bc87eb2947d150853bca?d=identicon)[flik](/maintainers/flik)

---

Top Contributors

[![flik](https://avatars.githubusercontent.com/u/900323?v=4)](https://github.com/flik "flik (17 commits)")

### Embed Badge

![Health badge](/badges/flik-piece-of-cake/health.svg)

```
[![Health](https://phpackages.com/badges/flik-piece-of-cake/health.svg)](https://phpackages.com/packages/flik-piece-of-cake)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
