PHPackages                             sartajphp/sartajphp - 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. sartajphp/sartajphp

ActiveLibrary[Framework](/categories/framework)

sartajphp/sartajphp
===================

SartajPHP PHP Framework.

v5.0.0(3mo ago)32191MITPHPPHP &gt;=5.5

Since Sep 26Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/sartaj-sphp/SartajPHP-Framework)[ Packagist](https://packagist.org/packages/sartajphp/sartajphp)[ RSS](/packages/sartajphp-sartajphp/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)DependenciesVersions (14)Used By (0)

SartajPHP PHP Framework
=======================

[](#sartajphp-php-framework)

[ ![](logo.png)](http://sartajphp.com)

Info
----

[](#info)

[SartajPHP](https://www.sartajphp.com) is a **PHP framework** for web applications, Command Line Application, Desktop Application with Hybrid Technology and Mobile Application with Hybrid and Ajax Platform. This PHP Framework used event oriented programming techniques. It is full flexible framework where you can build any type of application like MVC, Component Oriented, API, Multi Tier, Cross Platform, Web Service, plugin or extension for another PHP Frameworks, wrapper for another PHP frameworks or applications or your new things. This PHP Framework has lots of reusable **PHP components**. SartajPHP is giving life to lots of web,desktop and mobile applications.

VS Code Extension Available on Market Place search SartajPHP in VS code
-----------------------------------------------------------------------

[](#vs-code-extension-available-on-market-place-search-sartajphp-in-vs-code)

For more info see:- [](https://github.com/sartaj-singh/vscode-sartajphp-intellisense)

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

[](#installation)

- [Install SartajPHP + Sphp Server](https://www.sartajphp.com) with NPM JS Package).

How to install Sphp Server binary package?

- With NPM:----

npm install -g sphpdesk

- After Installation run command

npx sphpdesk

or direct call if symlink work, sometime nmp doesn't create symlink for binary

sphpdesk

It runs default project inside res folder. If you want to run directly sphpserver then you can create a symlink inside your bin folder. For run with double click on file app.sphp, you need to register .sphp file type with sphpserver application. Right click on app.sphp file and select open with and choose sphpserver application path.OR you can install on your desktop with installation file inside res/sphpserver folder

- [Install SartajPHP](https://www.sartajphp.com) with Composer or download zip file from github(see [GitHub](https://github.com/sartaj-singh/SartajPHP-Framework)).

How to install it?

With Composer:----

Add to your composer.json:

```
{

    "require": {

        "sartajphp/sartajphp": "dev-master"

    }

}

```

Then

```
composer install

	OR

composer update

```

With Download Zip file from github :--------

After download copy res and demo folder in your root folder. res folder is called framework folder and demo folder is called project folder. You can create your component, classes etc. all reusable code in res folder and customized or project related code in project folder. Learn more:- [SartajPHP Website](https://www.sartajphp.com)

Sphp Server(install with NPM) Commands:-
----------------------------------------

[](#sphp-serverinstall-with-npm-commands-)

- Run Desk App mode:- sphpdesk proj\_dir/app.sphp
- Run Server App mode:- sphpdesk --proj proj\_dir
- Read Settings from app.sphp and you can change running mode of sphpserver

app.sphp file settings:-
------------------------

[](#appsphp-file-settings-)

You can over-write these settings with console arguments:- "project": Name of project, "type": Run Mode:- srvapp or deskapp or consoleapp, "host": "localhost", "port": 0 : port number to serve server "secure": 0 : no https "php": "php": use system installed PHP or "" "browser": "default":- System Default or "$exepath/browser/nw" your custom browser or "" empty for inbuilt browser, these browser need libraries installed on system like WebView2 on windows and GTK3, WebKitGTK on linux

browser command line arguments example:- "browserparam": \["--url=$url"\], "browserparam1": \["--allow-file-access-from-files", "--disable-web-security", "--user-data-dir=$projpath/cache","--app=$url", "--disable-features=CrossSiteDocumentBlockingIfIsolating"\], "browserparam2": \["--app=$url"\], "browserparam3": \["--new-window", "$url"\]

command line example:- ./sphpserver-linux --proj "/home/admin/web/domain.com/public\_html" --type "srvp3" --port 8001 --host "domain.com" --php "php" --key "/home/admin/conf/web/ssl.domain.com.key" --cert "/home/admin/conf/web/ssl.domain.com.crt" --ca "/home/admin/conf/web/ssl.domain.com.pem"

Documentation
-------------

[](#documentation)

- Read the [Getting Started guide](https://www.sartajphp.com) if you are new to SartajPHP.
- Video Tutorial on Youtube [SartajPHP Video Tutorial](https://www.youtube.com/channel/UCKENEpj-PZvpS2lC4cqh-7g) to learn SartajPHP practically.
- [Latest API](https://www.sartajphp.com/api/)

Community
---------

[](#community)

- Follow us on [GitHub](https://github.com/sartaj-singh/SartajPHP-Framework), [Youtube](https://www.youtube.com/channel/UCKENEpj-PZvpS2lC4cqh-7g) and [Facebook](https://www.facebook.com/DevelopmentFramework/).

Contributing
------------

[](#contributing)

For Contribute and Support us please contacts on our [Facebook](https://www.facebook.com/DevelopmentFramework/) Page

Security Issues
---------------

[](#security-issues)

If you discover a security vulnerability within SartajPHP PHP Framework, please contacts us [Facebook Page](https://www.facebook.com/DevelopmentFramework/).

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance86

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~254 days

Recently: every ~343 days

Total

13

Last Release

109d ago

Major Versions

v4.5.0 → v5.0.02026-01-29

PHP version history (3 changes)v4.3.0PHP ^5.4

v4.4.7PHP &gt;=5.4

v5.0.0PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/90ca0131987b9c325971e2c9a265808597d18cc5c23e76654ab47f7777178e5b?d=identicon)[sartaj-singh](/maintainers/sartaj-singh)

---

Top Contributors

[![sartaj-sphp](https://avatars.githubusercontent.com/u/10854716?v=4)](https://github.com/sartaj-sphp "sartaj-sphp (6 commits)")

### Embed Badge

![Health badge](/badges/sartajphp-sartajphp/health.svg)

```
[![Health](https://phpackages.com/badges/sartajphp-sartajphp/health.svg)](https://phpackages.com/packages/sartajphp-sartajphp)
```

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[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.

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

A simple API extension for DateTime.

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

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

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