PHPackages                             pranab/s-php - 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. pranab/s-php

ActiveProject[Framework](/categories/framework)

pranab/s-php
============

A lightweight PHP framework inspired by Laravel

v2.0.1(1y ago)123MITPHPPHP ^8.1

Since May 8Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/PranabZz/s-php)[ Packagist](https://packagist.org/packages/pranab/s-php)[ Docs](https://github.com/pranabkc/s-php)[ RSS](/packages/pranab-s-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (0)

 [![Logo](./logo.png)](./logo.png)

**S-PHP** is a lightweight, simple MVC (Model-View-Controller) PHP framework designed to help developers build scalable and maintainable web applications. It's perfect for those who need a quick start without the complexity of heavier frameworks.

Features
--------

[](#features)

- **Lightweight**: Minimalistic design with only the core MVC features.
- **Easy Setup**: No complex configurations; simple to get started.
- **Flexible Routing**: Handles URL-to-controller mappings effortlessly.
- **MVC Architecture**: Organizes code into Models, Views, and Controllers.
- **Extensible**: Easily extendable with additional features.

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- Web server (Apache, Nginx, etc.)
- Composer (optional, for dependency management)

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

[](#installation)

### 1. Clone the Repository

[](#1-clone-the-repository)

Clone this repository to your local machine using Git:

```
git clone https://github.com/PranabZz/S-PHP.git
```

### 2. Install Dependencies (Optional)

[](#2-install-dependencies-optional)

If you wish to use Composer to manage dependencies, run the following:

```
composer install
```

### Project Structure

[](#project-structure)

```
S-PHP/
│
├── app/
│   ├── Controllers/
│   ├── Models/
│   └── Views/
│
├── public/
│   └── index.php       # Entry point for the application
│
├── routes/
│   └── web.php         # Defines routes for the application
│
└── .gitignore
```

### Usage

[](#usage)

Create a New Controller

To create a new controller, simply create a new file in the app/Controllers directory:

```
