PHPackages                             codera21/sf - 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. codera21/sf

ActiveProject[Framework](/categories/framework)

codera21/sf
===========

Simple php framework inspired by codeigniter, laravel, yii

v1.2(5y ago)413MITPHPPHP &gt;=5.3.0

Since Aug 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/codera21/SimpleFramework)[ Packagist](https://packagist.org/packages/codera21/sf)[ Docs](https://github.com/codera21/SimpleFramework)[ RSS](/packages/codera21-sf/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)DependenciesVersions (6)Used By (0)

SimpleFramework
===============

[](#simpleframework)

It is a MVC framwork made in PHP.

Requirement
-----------

[](#requirement)

Since I am using latest version of twig and it needs at least php 7.0. you will need what a typical php project will require.

Installation
------------

[](#installation)

run:

- `composer create-project codera21/sf project_name`
- `cd project_name`
- `run php -S localhost:8080`

Guidelines
----------

[](#guidelines)

1. Controller Name must be in `CapitalCase` and must follow `Controller` suffix
2. Function inside the Controller also must be in `CapitalCase` and must follow `Action` suffix
3. Table in Database and it's respective Model Class name must be in pural.

Getting Started
---------------

[](#getting-started)

### Using the Controller

[](#using-the-controller)

Inside `Application\WebInterface`you will see three folders `Controllers` , `Models` , `ViewModels` , `Views`. Goto Controllers then Create one new Controller Let's Say `PageController.php` with one method `IndexAction()` the code is as shown below:

```
