PHPackages                             refkinscallv/framework - 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. refkinscallv/framework

ActiveProject[Framework](/categories/framework)

refkinscallv/framework
======================

Simple, Lightweight and Modular traditional PHP Framework. With MVC, Routing and Query Builder/ORM

1.1.0(1y ago)1141MITPHP

Since Oct 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/refkinscallv/framework)[ Packagist](https://packagist.org/packages/refkinscallv/framework)[ RSS](/packages/refkinscallv-framework/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (6)Versions (10)Used By (0)

A Lightweight PHP Framework
===========================

[](#a-lightweight-php-framework)

This is a lightweight PHP framework crafted for developers seeking a straightforward and efficient tool for building web applications. Focused on simplicity and performance, it provides all the essential features without unnecessary complexity.

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Installation](#installation)
    - [Cloning the Repository](#cloning-the-repository)
    - [Using Composer](#using-composer)
- [Configuration and Setup](#configuration-and-setup)
- [Defining Routes](#defining-routes)
- [Contributing](#contributing)
- [License](#license)

Features
--------

[](#features)

This framework offers a rich set of features to help you build robust, scalable web applications:

- **MVC Architecture**: Organize your application using the Model-View-Controller (MVC) pattern, keeping business logic, user interface, and data models separated.
- **Query Builder / ORM**: Interact with your database effortlessly with an intuitive query builder or object-relational mapping (ORM).
- **Routing**: Define clean and readable URL routes with a powerful routing system.
- **Cookie Management**: Simplify cookie handling with an easy-to-use API for setting and retrieving cookies.
- **Crypto**: Enhance data security with built-in encryption and decryption methods.
- **Mailer**: Send emails easily using the built-in mailer component.
- **Session Management**: Handle user sessions securely and efficiently.
- **Form Validation**: Validate user input with a flexible and extendable form validation system.
- **HTTP Request and Response**: Manage HTTP requests and responses with a simple, consistent API.

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

[](#installation)

Install the framework by cloning the repository or using Composer.

### Cloning the Repository

[](#cloning-the-repository)

To get started, clone the repository with:

```
git clone https://github.com/refkinscallv/framework.git
```

### Using Composer

[](#using-composer)

Alternatively, install via Composer:

```
composer create-project refkinscallv/framework
```

Configuration and Setup
-----------------------

[](#configuration-and-setup)

After installing the framework, follow these steps to configure and set up your environment:

1. **Build the Project**

    Compile and prepare your project by running:

    ```
    php fw build
    ```
2. **Update the Project (Optional)**

    To update your project, run:

    ```
    php fw update
    ```
3. **Start the Built-In PHP Server**

    Run your application using PHP’s built-in server with:

    ```
    php fw serve
    ```

    This will start the server, allowing you to view your application in a web browser.

Defining Routes
---------------

[](#defining-routes)

This framework uses a straightforward routing system. Routes are defined in `app/Routes/Route.php`. Here’s an example:

```
